mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
(hotfix) event sync to avalon wont crash if 'keys' key is in entity and is set to None
This commit is contained in:
parent
e5fd39d911
commit
cffd0c498c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue