File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/superannotate/lib/app/interface Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -652,11 +652,11 @@ def set_images_annotation_statuses(
652652 def delete_images (
653653 self , project : Union [NotEmptyStr , dict ], image_names : Optional [List [str ]] = None
654654 ):
655- """delete images in project.
655+ """Delete Images in project.
656656
657657 :param project: project name or folder path (e.g., "project1/folder1")
658658 :type project: str
659- :param image_names: to be deleted images' names. if none , all the images will be deleted
659+ :param image_names: to be deleted images' names. If None , all the images will be deleted
660660 :type image_names: list of strs
661661 """
662662
@@ -670,13 +670,13 @@ def delete_images(
670670 project_name , folder_name = extract_project_folder (project )
671671
672672 if not isinstance (image_names , list ) and image_names is not none :
673- raise appexception ("image_names should be a list of str or none ." )
673+ raise AppException ("image_names should be a list of str or None ." )
674674
675675 response = self .controller .delete_images (
676676 project_name = project_name , folder_name = folder_name , image_names = image_names
677677 )
678678 if response .errors :
679- raise appexception (response .errors )
679+ raise AppException (response .errors )
680680
681681 logger .info (
682682 f"images deleted in project { project_name } { '/' + folder_name if folder_name else '' } "
You can’t perform that action at this time.
0 commit comments