Skip to content

Commit 21a10a1

Browse files
PJEstradaPJEstrada
andauthored
fix: bugfix for global attribute upload (#34)
Co-authored-by: Pablo <pjestradac@gmail.com>
1 parent d7a790a commit 21a10a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/diffgram/convert/convert.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ def convert_label(self, instance):
1111

1212
name = instance.get('name')
1313

14+
if instance.get('type') == 'global':
15+
return instance
16+
1417
if not name:
1518
raise Exception("Key Error: Instance must have a key 'name'.")
16-
1719
instance["label_file_id"] = self.client.name_to_file_id.get(name, None)
1820

1921
if not instance["label_file_id"]:

0 commit comments

Comments
 (0)