mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 07:14:18 +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:
|
try:
|
||||||
self.processor.keyword_arguments_for(plugin.parameters, arguments)
|
self.processor.keyword_arguments_for(plugin.parameters, arguments)
|
||||||
except AttributeError as ae:
|
except AttributeError as ae:
|
||||||
LOG.error("Plugin requested unknown parameters.")
|
|
||||||
raise exceptions.PluginRequestedUnknownParameters(
|
raise exceptions.PluginRequestedUnknownParameters(
|
||||||
plugin_name=plugin.display_name, exception=ae
|
plugin_name=plugin.display_name, exception=ae
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -251,9 +251,8 @@ class FileProcessor:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
arguments[param] = getattr(self, param)
|
arguments[param] = getattr(self, param)
|
||||||
except AttributeError as exc:
|
except AttributeError:
|
||||||
if required:
|
if required:
|
||||||
LOG.exception(exc)
|
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue