mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed KeyError exception when entity from event does not have keys
This commit is contained in:
parent
8ba430f480
commit
7241c44d15
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class ThumbnailEvents(BaseEvent):
|
|||
# entity['action'] == 'encoded'):
|
||||
if (
|
||||
entity['entityType'] == 'assetversion'
|
||||
and 'thumbid' in entity['keys']
|
||||
and 'thumbid' in entity.get('keys', [])
|
||||
):
|
||||
|
||||
version = session.get('AssetVersion', entity['entityId'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue