| commit | c11c5483d69995bb8ae462b75f5532ce6ae02a77 | [log] [tgz] |
|---|---|---|
| author | Anthony Sottile <asottile@umich.edu> | Thu May 14 16:29:55 2020 -0700 |
| committer | Anthony Sottile <asottile@umich.edu> | Thu May 14 16:29:55 2020 -0700 |
| tree | 1ff9ae368fad4546e733d46290c443bd40188af3 | |
| parent | 66250ba9bf5ae48f660b7648d9feca8ed0b18e58 [diff] [blame] |
check-json: resolve TODO
diff --git a/pre_commit_hooks/check_json.py b/pre_commit_hooks/check_json.py index 25dbfd9..6026270 100644 --- a/pre_commit_hooks/check_json.py +++ b/pre_commit_hooks/check_json.py
@@ -14,8 +14,7 @@ with open(filename, 'rb') as f: try: json.load(f) - # TODO: need UnicodeDecodeError? - except (ValueError, UnicodeDecodeError) as exc: + except ValueError as exc: print(f'{filename}: Failed to json decode ({exc})') retval = 1 return retval