mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
remove triple logged stacktrace on unknown plugin args
This commit is contained in:
parent
d3c9b61a1c
commit
9343a993f6
2 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue