Skip to content

Commit

Permalink
Bugfix: UnicodeEncode error while setting up extension (#2251)
Browse files Browse the repository at this point in the history
* fixed a bug while setting up extension

* blackify the changes
  • Loading branch information
Aditi-Singh16 authored Feb 27, 2023
1 parent d369abe commit 09c5c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptoadvance/specter/services/extension_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def render(self, template, env=None, filename=None, **kargv):
else:
fq_fname = Path(self.base_path, file_name)
if not fq_fname.is_file():
with open(fq_fname, "w") as file:
with open(fq_fname, "w", encoding="utf-8") as file:
file.write(rendered_text)
print(f" --> Created {fq_fname}")

Expand Down

0 comments on commit 09c5c2f

Please sign in to comment.