We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105800c commit ce6dd3aCopy full SHA for ce6dd3a
superannotate/parameter_decorators.py
@@ -2,6 +2,7 @@
2
from inspect import signature
3
4
from .common import project_type_int_to_str
5
+from .common import upload_state_str_to_int
6
from .db.project_api import get_project_metadata_bare
7
from .exceptions import SABaseException
8
from .ml.ml_models import search_models
@@ -50,6 +51,12 @@ def inner(*args, **kwargs):
50
51
0,
52
"The 'project' argument should be a dict, a string, a list of strings or a list of dicts"
53
)
54
+
55
+ if new_kwargs["project"]["upload_state"] == upload_state_str_to_int("External"):
56
+ raise SABaseException(
57
+ 0,
58
+ f"The function does not support projects containing {new_kwargs['project']['type']} attached with URLs"
59
+ )
60
return func(**new_kwargs)
61
62
return inner
0 commit comments