Skip to content

Commit ea7de60

Browse files
committed
No need to wrap failure error in another deferred
1 parent 36b2170 commit ea7de60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/core/execution/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def complete_value(self, ctx, return_type, field_asts, info, result):
200200
info,
201201
resolved
202202
),
203-
lambda error: fail(GraphQLError(str(error.value), field_asts, error))
203+
lambda error: GraphQLError(str(error.value), field_asts, error)
204204
)
205205

206206
if isinstance(result, Exception):

0 commit comments

Comments
 (0)