From 94550ac1e5bfc9f85d7719267ece6f7e57e99ea1 Mon Sep 17 00:00:00 2001 From: Dan Sutich Date: Thu, 3 Aug 2023 17:04:18 -0400 Subject: [PATCH] Old style if syntax --- graphene_django/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphene_django/views.py b/graphene_django/views.py index f6634bb..84f565c 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -331,8 +331,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: