mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 00:32:24 +03:00
Support Python 3.10's new format_exception signature.
This commit is contained in:
parent
e584d5ef5d
commit
c6c122b973
|
@ -11,7 +11,7 @@ def wrap_exception(exception):
|
|||
exc_type=force_str(type(exception)),
|
||||
stack="".join(
|
||||
traceback.format_exception(
|
||||
etype=type(exception), value=exception, tb=exception.__traceback__
|
||||
exception, value=exception, tb=exception.__traceback__
|
||||
)
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user