Skip to content

Commit 550c9ac

Browse files
committed
checking redbiom_samples before retrieving samples
1 parent 37b9559 commit 550c9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_pet/handlers/qiita_redbiom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _redbiom_metadata_search(self, query, contexts):
5656
'The query ("%s") did not work and may be malformed. Please '
5757
'check the search help for more information on the queries.'
5858
% query)
59-
if not message:
59+
if not message and redbiom_samples:
6060
study_artifacts = defaultdict(lambda: defaultdict(list))
6161
for ctx in contexts:
6262
# redbiom.fetch.data_from_samples returns a biom, which we

0 commit comments

Comments
 (0)