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 2d62ada commit 1140976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mumax3c/drivers/relaxdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 1140976

Please sign in to comment.