fixed KeyError exception when entity from event does not have keys

This commit is contained in:
iLLiCiTiT 2019-10-10 12:59:37 +02:00
parent 8ba430f480
commit 7241c44d15

View file

@ -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'])