getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

Enable custom error handlers with sanic #1345

Closed djetelina closed 1 year ago

djetelina commented 5 years ago

In sanic only the first found error handler gets called matching an Exception, so registering raven.contrib.sanic.Sentry disables users from defining their own error handlers, as depending on the order of addition, one of them would not run. This commit doesn't change the default behavior while enabling users to define custom error handlers in which they will be able to call handle_exception manually.