(hotfix) event sync to avalon wont crash if 'keys' key is in entity and is set to None

This commit is contained in:
iLLiCiTiT 2019-07-26 11:03:55 +02:00
parent e5fd39d911
commit cffd0c498c

View file

@ -16,7 +16,7 @@ class Sync_to_Avalon(BaseEvent):
# If mongo_id textfield has changed: RETURN!
# - infinite loop
for ent in event['data']['entities']:
if 'keys' in ent:
if ent.get('keys') is not None:
if ca_mongoid in ent['keys']:
return