Add exception message

This commit is contained in:
cyyc1 2022-10-06 01:24:59 -07:00
parent 405a904906
commit ce824608c0

View file

@ -16,7 +16,7 @@ def fix_strings(filename: str) -> int:
with open(filename) as f: with open(filename) as f:
notebook_contents = json.load(f) notebook_contents = json.load(f)
except json.JSONDecodeError as exc: except json.JSONDecodeError as exc:
print(f'{filename}: Failed to load') print(f'{filename}: Failed to load ({exc})')
return 1 return 1
else: else:
cells = notebook_contents['cells'] cells = notebook_contents['cells']