mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Json serialization error should raise exception
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user