mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 04:54:16 +00:00
Add exception message
This commit is contained in:
parent
405a904906
commit
ce824608c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue