Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aabills committed Mar 17, 2023
1 parent e06d5b9 commit 688c9a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def solve(self, inputs):
self.parameter_values, x_100, x_0, y_100, y_0
)
sol_dict.update({"Maximum theoretical energy [W.h]": energy})
except pybamm.ValueError as my_err:
except:
warnings.warn("couldn't calculate theoretical energy")


Expand Down

0 comments on commit 688c9a0

Please sign in to comment.