Skip to content

Commit

Permalink
Merge pull request #7870 from dstansby/error-info
Browse files Browse the repository at this point in the history
Propagate original extension errors
  • Loading branch information
tk0miya committed Jul 12, 2020
2 parents 6059693 + 92c8703 commit 1d6b311
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 1d6b311

Please sign in to comment.