Merge pull request #1538 from asottile/triple-error

remove triple logged stacktrace on unknown plugin args
This commit is contained in:
Anthony Sottile 2022-01-23 18:35:15 -05:00 committed by GitHub
commit 969e8f38d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -342,7 +342,6 @@ class FileChecker:
try:
self.processor.keyword_arguments_for(plugin.parameters, arguments)
except AttributeError as ae:
LOG.error("Plugin requested unknown parameters.")
raise exceptions.PluginRequestedUnknownParameters(
plugin_name=plugin.display_name, exception=ae
)

View file

@ -251,9 +251,8 @@ class FileProcessor:
continue
try:
arguments[param] = getattr(self, param)
except AttributeError as exc:
except AttributeError:
if required:
LOG.exception(exc)
raise
else:
LOG.warning(