mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Protect against jsonschema / referencing import to include TypeError
This commit is contained in:
parent
62dd92a22d
commit
87233dfeac
@ -7,7 +7,7 @@ try:
|
||||
# Since `referencing`` only supports Python >= 3.8, this try-except blocks maintain support
|
||||
# for earlier python versions.
|
||||
from referencing.exceptions import Unresolvable
|
||||
except ImportError:
|
||||
except (ImportError, TypeError):
|
||||
from jsonschema.exceptions import RefResolutionError as Unresolvable
|
||||
|
||||
from .apimodel import ApiModel
|
||||
|
Loading…
Reference in New Issue
Block a user