diff options
author | David Stansby <dstansby@gmail.com> | 2020-07-11 18:58:20 +0300 |
---|---|---|
committer | David Stansby <dstansby@gmail.com> | 2020-07-11 18:58:20 +0300 |
commit | 92c870372f9346c9bc7575e1ee6669f305846cbc (patch) | |
tree | 7bbbd2b590c1989bec7fa5f7e5f0833c87e1d8aa /sphinx/events.py | |
parent | 6059693d713e22a1e0f399ad386c5b9176da1dd3 (diff) |
Propagate original extension error
Diffstat (limited to 'sphinx/events.py')
-rw-r--r-- | sphinx/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/events.py b/sphinx/events.py index 0911dfaaa..82a52d762 100644 --- a/sphinx/events.py +++ b/sphinx/events.py @@ -115,7 +115,7 @@ class EventManager: raise except Exception as exc: raise ExtensionError(__("Handler %r for event %r threw an exception") % - (listener.handler, name)) from exc + (listener.handler, name), exc) from exc return results def emit_firstresult(self, name: str, *args: Any, |