From 37c1d88037db71e3862ff549863c559c85cd0b26 Mon Sep 17 00:00:00 2001 From: wrongkindofdoctor <20195932+wrongkindofdoctor@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:49:35 -0400 Subject: [PATCH] change assertion to log errof if translation is None in varlist_util --- src/varlist_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/varlist_util.py b/src/varlist_util.py index 97332a4a7..f256acd5b 100644 --- a/src/varlist_util.py +++ b/src/varlist_util.py @@ -560,7 +560,8 @@ def setup_var(self, v.dest_path = self.variable_dest_path(model_paths, case_name, v) try: trans_v = translate.translate(v, from_convention) - assert trans_v is not None, f'translation for varlistentry {v.name} failed' + if trans_v is None: + v.log.error(f'translation for varlistEntry {v.name} failed') v.translation = trans_v # copy preferred gfdl post-processing component during translation if hasattr(trans_v, "component"):