Skip to content

Commit

Permalink
checking redbiom_samples before retrieving samples
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Apr 13, 2022
1 parent 37b9559 commit 550c9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiita_pet/handlers/qiita_redbiom.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _redbiom_metadata_search(self, query, contexts):
'The query ("%s") did not work and may be malformed. Please '
'check the search help for more information on the queries.'
% query)
if not message:
if not message and redbiom_samples:
study_artifacts = defaultdict(lambda: defaultdict(list))
for ctx in contexts:
# redbiom.fetch.data_from_samples returns a biom, which we
Expand Down

0 comments on commit 550c9ac

Please sign in to comment.