Skip to content

Commit

Permalink
Merge pull request #154 from indralab/fix_content
Browse files Browse the repository at this point in the history
Fix condition in checking for trid_list
  • Loading branch information
pagreene committed Jan 19, 2021
2 parents 64cfbb3 + 2f6b153 commit 699311d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indra_db/client/principal/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_content_by_refs(db, pmid_list=None, trid_list=None, sources=None,
the corresponding content.
"""
# Make sure we only get one type of list.
if not pmid_list or trid_list:
if not (pmid_list or trid_list):
raise ValueError("One of `pmid_list` or `trid_list` must be defined.")
if pmid_list and trid_list:
raise ValueError("Only one of `pmid_list` or `trid_list` may be used.")
Expand Down

0 comments on commit 699311d

Please sign in to comment.