Skip to content

Commit 5b3890e

Browse files
committed
raising app exception
1 parent 5c8dab4 commit 5b3890e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,10 @@ def aggregate_annotations_as_df(
19371937
"""
19381938
from superannotate.lib.app.analytics.aggregators import DataAggregator
19391939

1940-
ProjectTypes.validate(project_type)
1940+
try:
1941+
ProjectTypes.validate(project_type)
1942+
except TypeError as e:
1943+
raise AppException(e)
19411944
return DataAggregator(
19421945
project_type=project_type,
19431946
project_root=project_root,

0 commit comments

Comments
 (0)