This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ def create_data_rows_from_table(
52
52
get_unique_values_function = connector .get_unique_values_function , metadata_index = metadata_index , verbose = verbose
53
53
)
54
54
55
- # If df returns False, the sync failed
55
+ # If df returns False, the sync failed - terminate the upload
56
56
if type (df ) == bool :
57
- return None
57
+ return [], []
58
58
59
59
# Create a dictionary where {key=global_key : value=labelbox_upload_dictionary} - this is unique to Pandas
60
60
global_key_to_upload_dict , conversion_errors = connector .create_upload_dict (
@@ -63,6 +63,7 @@ def create_data_rows_from_table(
63
63
metadata_index = metadata_index , local_files = local_files , divider = divider , verbose = verbose
64
64
)
65
65
66
+ # If there are conversion errors, let the user know; if there are no successful conversions, terminate the upload
66
67
if conversion_errors :
67
68
print (f'There were { len (conversion_errors )} errors in creating your upload list - the second return value will be a list of errors.' )
68
69
if global_key_to_upload_dict :
You can’t perform that action at this time.
0 commit comments