fix(ftrack): check if asset is in avalon db before trying to delete it, throw sanitized error otherwise

This commit is contained in:
Ondřej Samohel 2019-05-12 22:41:40 +00:00
parent 4b977bcea2
commit c8395f43dd

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