mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 16:14:18 +00:00
Show traceback on plugin exception
This commit is contained in:
parent
b6ba6d4d03
commit
6813f159d7
1 changed files with 2 additions and 1 deletions
|
|
@ -435,7 +435,8 @@ class FileChecker(object):
|
||||||
return plugin["plugin"](**arguments)
|
return plugin["plugin"](**arguments)
|
||||||
except Exception as all_exc:
|
except Exception as all_exc:
|
||||||
LOG.critical(
|
LOG.critical(
|
||||||
"Plugin %s raised an unexpected exception", plugin["name"]
|
"Plugin %s raised an unexpected exception", plugin["name"],
|
||||||
|
exc_info=True
|
||||||
)
|
)
|
||||||
raise exceptions.PluginExecutionFailed(
|
raise exceptions.PluginExecutionFailed(
|
||||||
plugin=plugin, exception=all_exc
|
plugin=plugin, exception=all_exc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue