Only catch GraphQLException

which allows generic Exception through in case
UnforgivingExecutionContext is used
This commit is contained in:
Wei Lu 2021-06-09 13:18:45 -04:00
parent 269225085d
commit 9d7d621e47

View File

@ -374,7 +374,7 @@ class GraphQLView(View):
return result
return execute(schema, document, **execute_options)
except Exception as e:
except GraphQLError as e:
return ExecutionResult(errors=[e])
@classmethod