Skip to content

Commit 9d7d621

Browse files
committed
Only catch GraphQLException
which allows generic Exception through in case UnforgivingExecutionContext is used
1 parent 2692250 commit 9d7d621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def execute_graphql_request(
374374
return result
375375

376376
return execute(schema, document, **execute_options)
377-
except Exception as e:
377+
except GraphQLError as e:
378378
return ExecutionResult(errors=[e])
379379

380380
@classmethod

0 commit comments

Comments
 (0)