mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
addes explicit bson error catching in assign_look
This commit is contained in:
parent
8becf73791
commit
afd490ce33
1 changed files with 1 additions and 1 deletions
|
|
@ -775,7 +775,7 @@ def assign_look(nodes, subset="lookDefault"):
|
|||
# create objectId for database
|
||||
try:
|
||||
asset_id = bson.ObjectId(asset_id)
|
||||
except Exception:
|
||||
except bson.errors.InvalidId:
|
||||
log.warning("Asset ID is not compatible with bson")
|
||||
continue
|
||||
subset_data = io.find_one({"type": "subset",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue