Skip to content

Commit 9c383b1

Browse files
committed
Rollback: allow an artifact to be unlinked
1 parent a26d65c commit 9c383b1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

qiita_db/artifact.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,11 +1473,6 @@ def prep_templates(self):
14731473
msg = f"Artifact({self.id}) associated with preps: {sorted(ids)}"
14741474
raise ValueError(msg)
14751475

1476-
if len(templates) == 0:
1477-
# An artifact must be associated with a template
1478-
msg = f"Artifact({self.id}) is not associated with a template"
1479-
raise ValueError(msg)
1480-
14811476
return templates
14821477

14831478
@property

0 commit comments

Comments
 (0)