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 faa8337 commit 2d62ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mumax3c/drivers/mindriver.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 energy in it"""
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 2d62ada

Please sign in to comment.