@@ -256,22 +256,19 @@ def execute_graphql_request(
256
256
)
257
257
)
258
258
259
- try :
260
- validation_errors = validate (self .schema .graphql_schema , document )
261
- if validation_errors :
262
- return ExecutionResult (data = None , errors = validation_errors )
263
-
264
- return execute (
265
- schema = self .schema .graphql_schema ,
266
- document = document ,
267
- root_value = self .get_root_value (request ),
268
- variable_values = variables ,
269
- operation_name = operation_name ,
270
- context_value = self .get_context (request ),
271
- middleware = self .get_middleware (request ),
272
- )
273
- except Exception as e :
274
- return ExecutionResult (errors = [e ])
259
+ validation_errors = validate (self .schema .graphql_schema , document )
260
+ if validation_errors :
261
+ return ExecutionResult (data = None , errors = validation_errors )
262
+
263
+ return execute (
264
+ schema = self .schema .graphql_schema ,
265
+ document = document ,
266
+ root_value = self .get_root_value (request ),
267
+ variable_values = variables ,
268
+ operation_name = operation_name ,
269
+ context_value = self .get_context (request ),
270
+ middleware = self .get_middleware (request ),
271
+ )
275
272
276
273
@classmethod
277
274
def can_display_graphiql (cls , request , data ):
0 commit comments