Skip to content

Commit

Permalink
Propagate original extension error
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Jul 11, 2020
1 parent 6059693 commit 92c8703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def emit(self, name: str, *args: Any,
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,
Expand Down

0 comments on commit 92c8703

Please sign in to comment.