Skip to content

Commit

Permalink
Set more open() encoding to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Jan 5, 2023
1 parent 140777b commit 170e8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigexport/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def create_markdown(
if not name:
name = "None"
md_path = dest / name / "index.md"
with md_path.open("w") as _:
with md_path.open("w", encoding="utf-8") as _:
pass # overwrite file if it exists

for msg in messages:
Expand Down Expand Up @@ -505,7 +505,7 @@ def main(

# Read sqlcipher key from Signal config file
if source.is_file():
with open(source) as conf:
with open(source, encoding="utf-8") as conf:
key = json.loads(conf.read())["key"]
else:
secho(f"Error: {source} not found in directory {src}")
Expand Down

0 comments on commit 170e8a2

Please sign in to comment.