Skip to content

Commit

Permalink
fix: properly read in file
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Jun 26, 2022
1 parent ed8e87b commit f317211
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pango_aliasor/aliasor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def __init__(self, alias_file=None):
file = json.load(file)

else:
file = json.load(alias_file)
with open(alias_file) as file:
file = json.load(file)

self.alias_dict = {}
for column in file.keys():
Expand Down

0 comments on commit f317211

Please sign in to comment.