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

Commit 61804fc

Browse files
Update client.py
1 parent b4700b9 commit 61804fc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

labelpandas/client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ def create_data_rows_from_table(
6464
)
6565

6666
if conversion_errors:
67+
print(f'There were {len(conversion_errors)} errors in creating your upload list - the second return value will be a list of errors.')
6768
if global_key_to_upload_dict:
68-
print(f'There were {len(conversion_errors)} errors in creating your upload list - upload will continue and return a list of errors as a second return value')
69+
print(f'Data row upload will continue - the first return value will be data row upload results')
6970
else:
70-
print(f'There were {len(conversion_errors)} errors in creating your upload list - upload will not continue')
71+
print(f'Data row upload will not continue')
7172
return [], errors
7273

7374
# Upload your data rows to Labelbox
@@ -76,10 +77,7 @@ def create_data_rows_from_table(
7677
skip_duplicates=skip_duplicates, divider=divider, verbose=verbose
7778
)
7879

79-
if conversion_errors:
80-
return upload_results, conversion_errors
81-
else:
82-
return upload_results, []
80+
return upload_results, conversion_errors
8381

8482
# def upsert_table_metadata():
8583
# return table

0 commit comments

Comments
 (0)