Skip to content

Commit 7798ca7

Browse files
TonyB9000tomvothecoder
authored andcommitted
small logging/logger errors addressed
1 parent 793afba commit 7798ca7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

e3sm_to_cmip/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ def _get_handlers(self):
240240
elif self.realm in MPAS_REALMS:
241241
handlers = _get_mpas_handlers(self.var_list)
242242

243+
else:
244+
logger.error(f"No such realm: {self.realm}")
245+
sys.exit(0)
246+
243247
if len(handlers) == 0:
244248
logger.error(
245249
"No CMIP6 variable handlers were derived from the variables found "

0 commit comments

Comments
 (0)