mirror of
https://github.com/PyCQA/flake8.git
synced 2026-06-29 00:30:44 +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:
|
||||
return plugin.obj(**arguments, **params)
|
||||
except Exception as all_exc:
|
||||
except (AssertionError, AttributeError, NameError, SyntaxError, TypeError, ValueError) as all_exc:
|
||||
LOG.critical(
|
||||
"Plugin %s raised an unexpected exception",
|
||||
plugin.display_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue