Skip to content

Commit

Permalink
Use explicit encoding when reading identifier files
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyChristina authored and dimkarakostas committed Jun 28, 2024
1 parent 95d757a commit ae769b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus_decentralization/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_pool_identifiers(project_name):
or an empty dictionary if no information is available for the project (the relevant file does not exist)
"""
try:
with open(MAPPING_INFO_DIR / f'identifiers/{project_name}.json') as f:
with open(MAPPING_INFO_DIR / f'identifiers/{project_name}.json', encoding='utf-8') as f:
identifiers = json.load(f)
except FileNotFoundError:
return dict()
Expand Down

0 comments on commit ae769b0

Please sign in to comment.