Skip to content

Commit

Permalink
Change error type and message for UM um_env.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-basevi committed Aug 23, 2024
1 parent cf01e0f commit 8cf99ce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions payu/models/um.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import datetime
import fileinput
import glob
from importlib.machinery import SourceFileLoader
from importlib.util import spec_from_loader, module_from_spec
import os
import shutil
import string
Expand Down Expand Up @@ -116,10 +114,10 @@ def setup(self):
deprecated_um_env = os.path.join(self.control_path, 'um_env.py')
new_um_env = os.path.join(self.control_path, 'um_env.yaml')
if (not os.path.isfile(new_um_env)) and os.path.isfile(deprecated_um_env):
raise FutureWarning(
raise RuntimeError(
(
"The `um_env.py` configuration file has been deprecated and "
"should be relplaced with a yaml file. "
"The `um_env.py` configuration file is no longer "
"supported and should be replaced with a yaml file. "
"Convert `um_env.py` to `um_env.yaml` using "
"https://github.com/ACCESS-NRI/esm1.5-scripts/blob/main/config-files/UM/um_env_to_yaml.py"
)
Expand Down

0 comments on commit 8cf99ce

Please sign in to comment.