From 9d7d621e47e07724c0f6f8255b4113d42c2aba7d Mon Sep 17 00:00:00 2001 From: Wei Lu Date: Wed, 9 Jun 2021 13:18:45 -0400 Subject: [PATCH] Only catch GraphQLException which allows generic Exception through in case UnforgivingExecutionContext is used --- graphene_django/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/views.py b/graphene_django/views.py index 1ec65988..74a1ed30 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -374,7 +374,7 @@ def execute_graphql_request( return result return execute(schema, document, **execute_options) - except Exception as e: + except GraphQLError as e: return ExecutionResult(errors=[e]) @classmethod