We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7815aa3 + a0188de commit 015976fCopy full SHA for 015976f
mergin/client.py
@@ -338,8 +338,9 @@ def get_list_of_push_changes(self, push_changes):
338
result_file = self.fpath("change_list" + str(idx), self.meta_dir)
339
try:
340
self.geodiff.list_changes_summary(changeset, result_file)
341
- change = open(result_file, "r").read()
342
- changes[file["path"]] = json.loads(change)
+ with open(result_file, 'r') as f:
+ change = f.read()
343
+ changes[file["path"]] = json.loads(change)
344
os.remove(result_file)
345
except (pygeodiff.GeoDiffLibError, pygeodiff.GeoDiffLibConflictError):
346
pass
0 commit comments