Skip to content

Commit 2aa61ab

Browse files
committed
Fix empty image names
1 parent 29bdb34 commit 2aa61ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

superannotate/db/project_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,13 +680,13 @@ def unassign_images(project, image_names):
680680
:param image_names: list of image unassign
681681
:type image_names: list of str
682682
"""
683+
if not image_names:
684+
return
683685
project, folder = get_project_and_folder_metadata(project)
684686

685687
folder_name = 'root'
686688
if folder:
687689
folder_name = folder['name']
688-
if not image_names:
689-
return
690690
logs = _unassign_images(folder_name=folder_name,image_names=image_names,project_id=project['id'],team_id=project['team_id'])
691691
for log in logs:
692692
logger.warn(log)

0 commit comments

Comments
 (0)