mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
ignore containers with invalid UUID in representation
This commit is contained in:
parent
1209b67ffd
commit
18bd94eb53
1 changed files with 7 additions and 0 deletions
|
|
@ -359,6 +359,13 @@ class ContainersModel:
|
|||
containers_by_id = {}
|
||||
container_items_by_id = {}
|
||||
for container in containers:
|
||||
try:
|
||||
uuid.UUID(container["representation"])
|
||||
except (ValueError, TypeError, AttributeError):
|
||||
# Skip container if does not have valid UUID representation id
|
||||
# (silently)
|
||||
continue
|
||||
|
||||
try:
|
||||
item = ContainerItem.from_container_data(container)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue