From 029ccc0f55e2ddec30e158c2e1c56ba1028250ce Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 1 Jul 2019 17:08:02 +0200 Subject: [PATCH] hotfix: custom attribute keys which are not on entities are skipped --- pype/ftrack/lib/avalon_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pype/ftrack/lib/avalon_sync.py b/pype/ftrack/lib/avalon_sync.py index 030b0b5b6c..f0112e84e1 100644 --- a/pype/ftrack/lib/avalon_sync.py +++ b/pype/ftrack/lib/avalon_sync.py @@ -380,7 +380,8 @@ def get_data(entity, session, custom_attributes): ent_obj_type_id = session.query(query).one()['id'] if cust_attr['object_type_id'] == ent_obj_type_id: - data[key] = entity['custom_attributes'][key] + if key in entity['custom_attributes']: + data[key] = entity['custom_attributes'][key] if entity_type in ['Project']: data['code'] = entity['name']