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:
Ondřej Samohel 2019-05-15 16:29:57 +00:00 committed by Milan Kolar
commit 0e99738315

View file

@ -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',