mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix(ftrack): check if asset is in avalon db before trying to delete it, throw sanitized error otherwise
This commit is contained in:
parent
4b977bcea2
commit
c8395f43dd
1 changed files with 6 additions and 0 deletions
|
|
@ -85,6 +85,12 @@ class DeleteAsset(BaseAction):
|
|||
'type': 'asset',
|
||||
'name': entity['name']
|
||||
})
|
||||
|
||||
if av_entity is None:
|
||||
return {
|
||||
'success': False,
|
||||
'message': 'Didn\'t found assets in avalon'
|
||||
}
|
||||
|
||||
asset_label = {
|
||||
'type': 'label',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue