Skip to content

Commit 4abafb6

Browse files
committed
Fix copy_image
1 parent 075cdc8 commit 4abafb6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

superannotate/db/project_images.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,12 @@ def copy_image(
410410
)
411411
if annotations["annotation_json"] is not None:
412412
if "annotation_mask" in annotations:
413-
upload_image_annotations(
414-
(destination_project, destination_project_folder), new_name,
415-
annotations["annotation_json"],
416-
annotations["annotation_mask"]
417-
)
413+
if annotations["annotation_mask"] is not None:
414+
upload_image_annotations(
415+
(destination_project, destination_project_folder),
416+
new_name, annotations["annotation_json"],
417+
annotations["annotation_mask"]
418+
)
418419
else:
419420
upload_image_annotations(
420421
(destination_project, destination_project_folder), new_name,

0 commit comments

Comments
 (0)