Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 8aa56f7

Browse files
Update client.py
1 parent 8461fc6 commit 8aa56f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

labelpandas/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ def create_data_rows_from_table(
5757
return None
5858

5959
# Create a dictionary where {key=global_key : value=labelbox_upload_dictionary} - this is unique to Pandas
60-
global_key_to_upload_dict = connector.create_upload_dict(
60+
result, global_key_to_upload_dict = connector.create_upload_dict(
6161
df=df, lb_client=self.lb_client, base_client=self.base_client,
6262
row_data_col=row_data_col, global_key_col=global_key_col, external_id_col=external_id_col,
6363
metadata_index=metadata_index, local_files=local_files, divider=divider, verbose=verbose
6464
)
65+
66+
if not result:
67+
return global_key_to_upload_dict
6568

6669
# Upload your data rows to Labelbox
6770
upload_results = self.base_client.batch_create_data_rows(

0 commit comments

Comments
 (0)