mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Merged in bugfix/20/check-if-asset-in-avalon (pull request #133)
fix(ftrack): check if asset is in avalon db before trying to delete it, throw sanitized error otherwise Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
0e99738315
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