Skip to content

Commit

Permalink
Use GustoIOError throughout io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Aug 3, 2023
1 parent 2f972a3 commit 5ad6f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gusto/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def setup_dump(self, state_fields, t, pick_up=False):
state from a checkpointing file. Defaults to False.
Raises:
IOError: if the results directory already exists, and the model is
GustoIOError: if the results directory already exists, and the model is
not picking up or running in test mode.
"""

Expand All @@ -310,7 +310,7 @@ def setup_dump(self, state_fields, t, pick_up=False):
elif not (running_tests or pick_up):
# Throw an error if directory already exists, unless we
# are picking up or running tests
raise IOError(f'results directory {self.dumpdir} already exists')
raise GustoIOError(f'results directory {self.dumpdir} already exists')

if self.output.dump_vtus or self.output.dump_nc:
# make list of fields to dump
Expand Down

0 comments on commit 5ad6f86

Please sign in to comment.