Merge pull request #1527 from PyCQA/better-unknown-arg-error

slightly improve unknown parameter error
This commit is contained in:
Anthony Sottile 2022-01-18 20:49:05 -05:00 committed by GitHub
commit 5445a6fc27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,7 +344,7 @@ class FileChecker:
except AttributeError as ae:
LOG.error("Plugin requested unknown parameters.")
raise exceptions.PluginRequestedUnknownParameters(
plugin_name=plugin.plugin.package, exception=ae
plugin_name=plugin.display_name, exception=ae
)
try:
return plugin.obj(**arguments)