Skip to content

Commit ad17f30

Browse files
committed
An incomplete prep will not have an artifact
1 parent c6f1213 commit ad17f30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qiita_pet/handlers/rest/study_association.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def _set_prep_template(template_payload, prep_template):
102102

103103
def _get_artifacts(prep_template):
104104
"""Get artifact information associated with a prep"""
105+
if prep_template.artifact is None:
106+
return []
107+
105108
pending_artifact_objects = [prep_template.artifact, ]
106109
all_artifact_objects = set(pending_artifact_objects[:])
107110

0 commit comments

Comments
 (0)