mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Merge pull request #213 from allrob23/master
Improve file handling in `main.py`
This commit is contained in:
commit
7ac233269b
4
main.py
4
main.py
@ -469,8 +469,8 @@ class TodoParser(object):
|
||||
if not os.path.exists(path) or not os.path.isfile(path):
|
||||
print(f'Cannot retrieve custom language file "{path}".')
|
||||
continue
|
||||
f = open(path)
|
||||
data = json.load(f)
|
||||
with open(path) as f:
|
||||
data = json.load(f)
|
||||
|
||||
# Iterate through the definitions.
|
||||
for lang in data:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user