Skip to content

Commit

Permalink
[FIX] oca-gen-addon-readme: add missing utf-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Aug 21, 2024
1 parent d5fab7e commit cf5b918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gen_addon_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def gen_one_addon_index(readme_filename):
index_dir = os.path.join(addon_dir, "static", "description")
index_filename = os.path.join(index_dir, "index.html")
if os.path.exists(index_filename):
with open(index_filename) as f:
with open(index_filename, encoding="utf-8") as f:
if "oca-gen-addon-readme" not in f.read():
# index was created manually
return
Expand Down

0 comments on commit cf5b918

Please sign in to comment.