mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Json serialization error should raise exception
This commit is contained in:
parent
0959974920
commit
6756dec06a
@ -83,7 +83,7 @@ class InterfaceBase(SessionInterface):
|
||||
if raise_on_errors:
|
||||
raise
|
||||
res = None
|
||||
except jsonschema.ValidationError as e:
|
||||
except (jsonschema.ValidationError, requests.exceptions.InvalidJSONError) as e:
|
||||
if log:
|
||||
log.error(
|
||||
'Field %s contains illegal schema: %s', '.'.join(e.path), str(e.message)
|
||||
|
Loading…
Reference in New Issue
Block a user