def _warn_about_suspicious_changes(self):
for add in sorted(self.config_mods.added):
if add not in self.captured_args:
raise KeyError("Added a new config entry "{}" that is not used"
" anywhere".format(add))
else:
After Change
def _warn_about_suspicious_changes(self):
for add in sorted(self.config_mods.added):
if not set(iter_prefixes(add)).intersection(self.captured_args):
raise KeyError("Added a new config entry "{}" that is not used"
" anywhere".format(add))
else: