From 212f0e87ca7e7d019b1f04d76f245ecd873589eb Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Thu, 29 Jun 2017 14:12:39 -0600 Subject: [PATCH] this change avoids an error if the forcing description is missing from config_compsets_cesm.xml --- scripts/lib/CIME/XML/component.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/lib/CIME/XML/component.py b/scripts/lib/CIME/XML/component.py index 8a89ca57435..e0eed6c417b 100644 --- a/scripts/lib/CIME/XML/component.py +++ b/scripts/lib/CIME/XML/component.py @@ -172,9 +172,8 @@ def _get_description_v3(self, compsetname, comp_class): "Too many matches on forcing field {} in file {}".\ format(forcing, self.filename)) desc = node.text - - expect(len(desc) > 0,"No match found for forcing field {} in file {}".\ - format(forcing, self.filename)) + if desc is None: + desc = compsetname.split('_')[0] return desc # first pass just make a hash of the option descriptions