Skip to content

Commit f94d254

Browse files
committed
👽 Use .formatted instead of format_error
1 parent f6ec068 commit f94d254

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene_django/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from django.views.generic import View
1212
from graphql import OperationType, get_operation_ast, parse, validate
1313
from graphql.error import GraphQLError
14-
from graphql.error import format_error as format_graphql_error
1514
from graphql.execution import ExecutionResult
1615

1716
from graphene import Schema
@@ -387,7 +386,7 @@ def get_graphql_params(request, data):
387386
@staticmethod
388387
def format_error(error):
389388
if isinstance(error, GraphQLError):
390-
return format_graphql_error(error)
389+
return error.formatted
391390

392391
return {"message": str(error)}
393392

0 commit comments

Comments
 (0)