Skip to content

Commit

Permalink
Merge pull request #719 from MetPX/v03_undeclared_whine_once into v03…
Browse files Browse the repository at this point in the history
…_WIP

"possibly undeclared" option message should only be printed once.
  • Loading branch information
andreleblanc11 committed Jul 17, 2023
2 parents bd9d3ff + 329cd83 commit 0762763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarracenia/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,8 @@ def parse_file(self, cfg, component=None):
setattr(self, k, v)
else:
#FIXME: with _options lists for all types and addition of declare, this is probably now dead code.
logger.debug('possibly undeclared option: %s' % line )
if k not in self.undeclared:
logger.debug('possibly undeclared option: %s' % line )
v = ' '.join(line[1:])
if hasattr(self, k):
if type(getattr(self, k)) is float:
Expand Down

0 comments on commit 0762763

Please sign in to comment.