mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
ftrack base handler can handle if items are result
This commit is contained in:
parent
3fb4f30e9b
commit
2360b44404
1 changed files with 8 additions and 6 deletions
|
|
@ -289,13 +289,15 @@ class BaseHandler(object):
|
|||
}
|
||||
|
||||
elif isinstance(result, dict):
|
||||
for key in ('success', 'message'):
|
||||
if key in result:
|
||||
continue
|
||||
items = 'items' in result
|
||||
if items is False:
|
||||
for key in ('success', 'message'):
|
||||
if key in result:
|
||||
continue
|
||||
|
||||
raise KeyError(
|
||||
'Missing required key: {0}.'.format(key)
|
||||
)
|
||||
raise KeyError(
|
||||
'Missing required key: {0}.'.format(key)
|
||||
)
|
||||
|
||||
else:
|
||||
self.log.error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue