mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +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:
|
if raise_on_errors:
|
||||||
raise
|
raise
|
||||||
res = None
|
res = None
|
||||||
except jsonschema.ValidationError as e:
|
except (jsonschema.ValidationError, requests.exceptions.InvalidJSONError) as e:
|
||||||
if log:
|
if log:
|
||||||
log.error(
|
log.error(
|
||||||
'Field %s contains illegal schema: %s', '.'.join(e.path), str(e.message)
|
'Field %s contains illegal schema: %s', '.'.join(e.path), str(e.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user