Skip to content

Commit

Permalink
Change Error type
Browse files Browse the repository at this point in the history
  • Loading branch information
samjrholt authored Mar 1, 2024
1 parent 7f6b75f commit 1e7f773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mumax3c/drivers/timedriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _check_system(self, system):
if len(system.dynamics) == 0:
raise RuntimeError("System's dynamics is not defined")
if len(system.energy) == 0:
raise AttributeError("System's energy is not defined")
raise RuntimeError("System's energy is not defined")

@property
def _x(self):
Expand Down

0 comments on commit 1e7f773

Please sign in to comment.