We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
data.json_is_valid()
1 parent 63284bd commit 8272fceCopy full SHA for 8272fce
2 files changed
remove-json-keys/src/remove_json_keys/lib/data/json.py
@@ -10,7 +10,7 @@ def is_valid(file_path, format='json'):
10
if not file_path.exists():
11
return False
12
try : file_text = file_path.read_text(encoding='utf-8')
13
- except UnicodeDecodeError:
+ except Exception:
14
15
if format == 'json':
16
try : json.loads(file_text) ; return True
translate-messages/src/translate_messages/lib/data/json.py
@@ -8,7 +8,7 @@ def is_valid(file_path, format='json'):
8
9
0 commit comments