From c6c122b9733495d7dde122052f3a91391865a7e5 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Wed, 8 Dec 2021 18:58:16 -0600 Subject: [PATCH] Support Python 3.10's new format_exception signature. --- graphene_django/debug/exception/formating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/debug/exception/formating.py b/graphene_django/debug/exception/formating.py index ed7ebab..0d477b3 100644 --- a/graphene_django/debug/exception/formating.py +++ b/graphene_django/debug/exception/formating.py @@ -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__ ) ), )