Skip to content

Commit

Permalink
Fix (my) bug when checking disease_stage_term_list
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reese committed Nov 30, 2023
1 parent 582feda commit c08bce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oncoexporter/model/op_disease.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, disease_term:PPKt.OntologyClass,
if disease_stage_term_list is not None:
if not isinstance(disease_stage_term_list, list):
raise ValueError(f"If passed, argument \"disease_stage_term_list\" must be a list but was {type(disease_stage_term_list)}")
if not disease_stage_term_list or len(disease_stage_term_list) == 0:
if disease_stage_term_list and len(disease_stage_term_list) == 0:
raise ValueError(f"If passed, argument \"disease_stage_term_list\" cannot be an empty list")


Expand Down

0 comments on commit c08bce6

Please sign in to comment.