Skip to content

Commit

Permalink
Throw exception for None solver instead of Warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-drews committed Jul 1, 2024
1 parent a388a2b commit b1cd963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acom_music_box/music_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def solve(self, path_to_output = None):


if (self.solver is None):
music_box_logger.progress("Warning: MusicBox object {} has no solver."
raise Exception("Error: MusicBox object {} has no solver."
.format(self))
rate_constant_ordering = musica.user_defined_reaction_rates(self.solver)

Expand Down

0 comments on commit b1cd963

Please sign in to comment.