Skip to content

Commit

Permalink
this change avoids an error if the forcing description is missing fro…
Browse files Browse the repository at this point in the history
…m config_compsets_cesm.xml
  • Loading branch information
jedwards4b committed Jun 29, 2017
1 parent a170957 commit 212f0e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/lib/CIME/XML/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 212f0e8

Please sign in to comment.