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

Commit 7b5b20b

Browse files
Update client.py
1 parent 61804fc commit 7b5b20b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelpandas/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def create_data_rows_from_table(
5252
get_unique_values_function=connector.get_unique_values_function, metadata_index=metadata_index, verbose=verbose
5353
)
5454

55-
# If df returns False, the sync failed
55+
# If df returns False, the sync failed - terminate the upload
5656
if type(df) == bool:
57-
return None
57+
return [], []
5858

5959
# Create a dictionary where {key=global_key : value=labelbox_upload_dictionary} - this is unique to Pandas
6060
global_key_to_upload_dict, conversion_errors = connector.create_upload_dict(
@@ -63,6 +63,7 @@ def create_data_rows_from_table(
6363
metadata_index=metadata_index, local_files=local_files, divider=divider, verbose=verbose
6464
)
6565

66+
# If there are conversion errors, let the user know; if there are no successful conversions, terminate the upload
6667
if conversion_errors:
6768
print(f'There were {len(conversion_errors)} errors in creating your upload list - the second return value will be a list of errors.')
6869
if global_key_to_upload_dict:

0 commit comments

Comments
 (0)