Skip to content

Commit f317211

Browse files
fix: properly read in file
1 parent ed8e87b commit f317211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pango_aliasor/aliasor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def __init__(self, alias_file=None):
1010
file = json.load(file)
1111

1212
else:
13-
file = json.load(alias_file)
13+
with open(alias_file) as file:
14+
file = json.load(file)
1415

1516
self.alias_dict = {}
1617
for column in file.keys():

0 commit comments

Comments
 (0)