From 62c6953c28c3c9ef6b26f4c412e106d1a5665e9f Mon Sep 17 00:00:00 2001 From: Pablo Date: Wed, 29 Jun 2022 14:53:54 -0600 Subject: [PATCH] fix: bugfix for global attribute upload --- sdk/diffgram/convert/convert.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/diffgram/convert/convert.py b/sdk/diffgram/convert/convert.py index adcdefd..413e5db 100644 --- a/sdk/diffgram/convert/convert.py +++ b/sdk/diffgram/convert/convert.py @@ -11,9 +11,11 @@ def convert_label(self, instance): name = instance.get('name') + if instance.get('type') == 'global': + return instance + if not name: raise Exception("Key Error: Instance must have a key 'name'.") - instance["label_file_id"] = self.client.name_to_file_id.get(name, None) if not instance["label_file_id"]: