TurboGears / backlash

Standalone WebOb port of the Werkzeug Debugger with Python3 support born as a WebError replacement for TurboGears2
MIT License
13 stars 11 forks source link

fix sentry reporter #12

Closed victor-torres closed 6 years ago

victor-torres commented 6 years ago

As described in https://github.com/TurboGears/tg2/issues/94

Sometimes we cannot access sys.exc_info(). TurboGears saves the original exc_info() in the os.environ so that we can properly initialize the Traceback object. I'm taking advantage of this information to specify the exc_info attribute of the method captureException from the raven lib. This way it won't need to access sys.exc_info().