mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-13 05:34:20 +03:00
Old style if syntax
This commit is contained in:
parent
add131dd7f
commit
056cd4105e
|
@ -339,8 +339,9 @@ class GraphQLView(View):
|
|||
)
|
||||
|
||||
execute_args = (self.schema.graphql_schema, document)
|
||||
validation_errors = validate(*execute_args)
|
||||
|
||||
if validation_errors := validate(*execute_args):
|
||||
if validation_errors:
|
||||
return ExecutionResult(data=None, errors=validation_errors)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user