Skip to content

Commit

Permalink
Reformatting by pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Oct 17, 2018
1 parent 14a4fe7 commit 37b9434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion graphql/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ def complete_value(
),
lambda error: Promise.rejected(
GraphQLLocatedError(field_asts, original_error=error, path=path)
if isinstance(error, GraphQLError) else error
if isinstance(error, GraphQLError)
else error
),
)

Expand Down
5 changes: 1 addition & 4 deletions graphql/execution/tests/test_executor_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ def resolver(context, *_):
raise Error("UH OH!")

Type = GraphQLObjectType(
"Type",
{
"a": GraphQLField(GraphQLString, resolver=resolver),
},
"Type", {"a": GraphQLField(GraphQLString, resolver=resolver)}
)

with pytest.raises(Error):
Expand Down

0 comments on commit 37b9434

Please sign in to comment.