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 f62683b commit 7f6b75f
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 @@ -65,7 +65,7 @@ def _checkargs(self, **kwargs):
def _check_system(self, system):
"""Checks the system has dynamics in it"""
if len(system.dynamics) == 0:
raise AttributeError("System's dynamics is not defined")
raise RuntimeError("System's dynamics is not defined")
if len(system.energy) == 0:
raise AttributeError("System's energy is not defined")

Expand Down

0 comments on commit 7f6b75f

Please sign in to comment.