mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
it is tried to set intent value on ftrack entity and do not crash pyblish in integrate_ftrack_api
This commit is contained in:
parent
19fe9879c1
commit
77d71d4bf3
1 changed files with 9 additions and 5 deletions
|
|
@ -188,14 +188,18 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
# Adding Custom Attributes
|
# Adding Custom Attributes
|
||||||
for attr, val in assetversion_cust_attrs.items():
|
for attr, val in assetversion_cust_attrs.items():
|
||||||
if attr in assetversion_entity["custom_attributes"]:
|
if attr in assetversion_entity["custom_attributes"]:
|
||||||
assetversion_entity["custom_attributes"][attr] = val
|
try:
|
||||||
continue
|
assetversion_entity["custom_attributes"][attr] = val
|
||||||
|
session.commit()
|
||||||
|
continue
|
||||||
|
except Exception:
|
||||||
|
session.rollback()
|
||||||
|
|
||||||
self.log.warning((
|
self.log.warning((
|
||||||
"Custom Attrubute \"{0}\""
|
"Custom Attrubute \"{0}\""
|
||||||
" is not available for AssetVersion."
|
" is not available for AssetVersion <{1}>."
|
||||||
" Can't set it's value to: \"{1}\""
|
" Can't set it's value to: \"{2}\""
|
||||||
).format(attr, str(val)))
|
).format(attr, assetversion_entity["id"], str(val)))
|
||||||
|
|
||||||
# Have to commit the version and asset, because location can't
|
# Have to commit the version and asset, because location can't
|
||||||
# determine the final location without.
|
# determine the final location without.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue