Skip to content

Commit ae769b0

Browse files
LadyChristinadimkarakostas
authored andcommitted
Use explicit encoding when reading identifier files
1 parent 95d757a commit ae769b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus_decentralization/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_pool_identifiers(project_name):
8181
or an empty dictionary if no information is available for the project (the relevant file does not exist)
8282
"""
8383
try:
84-
with open(MAPPING_INFO_DIR / f'identifiers/{project_name}.json') as f:
84+
with open(MAPPING_INFO_DIR / f'identifiers/{project_name}.json', encoding='utf-8') as f:
8585
identifiers = json.load(f)
8686
except FileNotFoundError:
8787
return dict()

0 commit comments

Comments
 (0)