Skip to content

Commit e499139

Browse files
catching UnicodeDecodeError
1 parent 061af57 commit e499139

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manim_editor/editor/commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def valid_json_load(path: Path, schema: Any) -> Optional[Any]:
6464
except PermissionError:
6565
print(f"Warning: can't access file '{path}'")
6666
return None
67+
except UnicodeDecodeError:
68+
print(f"Warning: can't decode file '{path}'")
69+
return None
6770
try:
6871
jsonschema.validate(data, schema)
6972
except jsonschema.ValidationError:

0 commit comments

Comments
 (0)