mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-22 22:53:05 +03:00
Only catch GraphQLException
which allows generic Exception through in case UnforgivingExecutionContext is used
This commit is contained in:
parent
623d0f219e
commit
9a1a954e35
|
@ -339,7 +339,7 @@ class GraphQLView(View):
|
|||
return result
|
||||
|
||||
return self.schema.execute(**options)
|
||||
except Exception as e:
|
||||
except GraphQLError as e:
|
||||
return ExecutionResult(errors=[e])
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue
Block a user