mirror of
https://github.com/PyCQA/flake8.git
synced 2026-07-03 10:29:31 +00:00
narrow run_check plugin exception handler to the assertion/attribute/name/syntax/type/value errors that plugin.obj(**arguments, **params) can actually raise
This commit is contained in:
parent
bb943328ef
commit
3cf9e4ac1e
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ class FileChecker:
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
return plugin.obj(**arguments, **params)
|
return plugin.obj(**arguments, **params)
|
||||||
except Exception as all_exc:
|
except (AssertionError, AttributeError, NameError, SyntaxError, TypeError, ValueError) as all_exc:
|
||||||
LOG.critical(
|
LOG.critical(
|
||||||
"Plugin %s raised an unexpected exception",
|
"Plugin %s raised an unexpected exception",
|
||||||
plugin.display_name,
|
plugin.display_name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue