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 5a2cab2 commit 6a89495Copy full SHA for 6a89495
qiita_db/artifact.py
@@ -364,6 +364,10 @@ def create(
364
raise qdb.exceptions.QiitaDBArtifactCreationError(
365
"Not valid: both prep_template and data_type need to be provided"
366
)
367
+ elif not bool(prep_template) and not bool(parents) and not bool(analysis):
368
+ raise qdb.exceptions.QiitaDBArtifactCreationError(
369
+ "Not valid: no prep_template, parents or analysis provided"
370
+ )
371
372
# There are three different ways of creating an Artifact, but all of
373
# them execute a set of common operations. Declare functions to avoid
0 commit comments