summaryrefslogtreecommitdiff
path: root/sphinx/events.py
diff options
context:
space:
mode:
authorDavid Stansby <dstansby@gmail.com>2020-07-11 16:58:20 +0100
committerDavid Stansby <dstansby@gmail.com>2020-07-11 16:58:20 +0100
commit92c870372f9346c9bc7575e1ee6669f305846cbc (patch)
tree7bbbd2b590c1989bec7fa5f7e5f0833c87e1d8aa /sphinx/events.py
parent6059693d713e22a1e0f399ad386c5b9176da1dd3 (diff)
downloadsphinx-git-92c870372f9346c9bc7575e1ee6669f305846cbc.tar.gz
Propagate original extension error
Diffstat (limited to 'sphinx/events.py')
-rw-r--r--sphinx/events.py2
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,