mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
Merge pull request #1527 from PyCQA/better-unknown-arg-error
slightly improve unknown parameter error
This commit is contained in:
commit
5445a6fc27
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ class FileChecker:
|
||||||
except AttributeError as ae:
|
except AttributeError as ae:
|
||||||
LOG.error("Plugin requested unknown parameters.")
|
LOG.error("Plugin requested unknown parameters.")
|
||||||
raise exceptions.PluginRequestedUnknownParameters(
|
raise exceptions.PluginRequestedUnknownParameters(
|
||||||
plugin_name=plugin.plugin.package, exception=ae
|
plugin_name=plugin.display_name, exception=ae
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
return plugin.obj(**arguments)
|
return plugin.obj(**arguments)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue