diff options
author | Lars Mikkelsen <lars@ionic.io> | 2018-09-25 07:06:07 -0400 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2018-09-25 13:06:07 +0200 |
commit | 719be9afae528962e683d086f9c2ceeda07f881b (patch) | |
tree | 92765619c6a1f9dd24a7bde03dbc0b441cce7097 /tox.ini | |
parent | 6307373dee9596995c5d35b349e9c8ba688b2a5d (diff) | |
download | raven-719be9afae528962e683d086f9c2ceeda07f881b.tar.gz |
Use correct kwarg in handle_exception() for Flask (#1300)
* Use correct kwarg in handle_exception() for Flask
The handle_exception() method is registered as a receiver of the
got_request_exception signal. According to both the [documentation][1]
and [source code][2] of Flask the got_request_exception signal passes
the exception as `exception` rather than a `exc_info`.
This is likely to have gone unnoticed since captureException() calls
sys.exc_info() in the absence of an exception.
On Python 3 we can use `__traceback__` to explicitly construct the
`exc_info`.
[1]: http://flask.pocoo.org/docs/1.0/api/#flask.got_request_exception
[2]: https://github.com/pallets/flask/blob/1.0.2/flask/app.py#L1732
* doc: Add changelog
Diffstat (limited to 'tox.ini')
0 files changed, 0 insertions, 0 deletions