From b1cd963c8b484938d8325d0dde1b68e093f8575b Mon Sep 17 00:00:00 2001 From: Carl Drews Date: Mon, 1 Jul 2024 16:16:56 -0600 Subject: [PATCH] Throw exception for None solver instead of Warning. --- src/acom_music_box/music_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acom_music_box/music_box.py b/src/acom_music_box/music_box.py index fd948ba4..6cc43374 100644 --- a/src/acom_music_box/music_box.py +++ b/src/acom_music_box/music_box.py @@ -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)