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:
Zo Bot 2026-06-12 13:46:35 +00:00
parent bb943328ef
commit 3cf9e4ac1e

View file

@ -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,