Skip to content

Commit

Permalink
Correcting message output in ontology builder
Browse files Browse the repository at this point in the history
  • Loading branch information
cshenry committed Aug 10, 2023
1 parent 951bce1 commit be8dcd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modelseedpy/core/msbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,8 @@ def build_from_annotaton_ontology(
reaction.gene_reaction_rule = gpr
reaction.annotation[SBO_ANNOTATION] = "SBO:0000176"
reactions.append(reaction)
else:
print("Reaction ",rxn_id," not found in template or database!")
if not reaction:
print("Reaction ",rxn_id," not found in template or database!")

model_or_id.add_reactions(reactions)
return model_or_id
Expand Down

0 comments on commit be8dcd1

Please sign in to comment.