Skip to content

Commit 501d21c

Browse files
committed
Better warning info on annotation errors
1 parent b278a59 commit 501d21c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

superannotate/db/projects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ def __upload_annotations_thread(
11641164
if not check_annotation_json(annotation_json):
11651165
couldnt_upload[thread_id].append(full_path)
11661166
logger.warning(
1167-
"Annotation JSON %s missing width or height info", full_path
1167+
"Annotation JSON %s missing width or height info. Skipping upload", full_path
11681168
)
11691169
continue
11701170
fill_class_and_attribute_ids(
@@ -1399,7 +1399,7 @@ def __upload_preannotations_thread(
13991399
if not check_annotation_json(annotation_json):
14001400
couldnt_upload[thread_id].append(full_path)
14011401
logger.warning(
1402-
"Annotation JSON %s missing width or height info", full_path
1402+
"Annotation JSON %s missing width or height info. Skipping upload", full_path
14031403
)
14041404
continue
14051405
fill_class_and_attribute_ids(annotation_json, annotation_classes_dict)

0 commit comments

Comments
 (0)