Support Python 3.10's new format_exception signature.

This commit is contained in:
Tim Schilling 2021-12-08 18:58:16 -06:00
parent e584d5ef5d
commit c6c122b973
No known key found for this signature in database
GPG Key ID: DDC5DD810DBA776C

View File

@ -11,7 +11,7 @@ def wrap_exception(exception):
exc_type=force_str(type(exception)), exc_type=force_str(type(exception)),
stack="".join( stack="".join(
traceback.format_exception( traceback.format_exception(
etype=type(exception), value=exception, tb=exception.__traceback__ exception, value=exception, tb=exception.__traceback__
) )
), ),
) )