Skip to content

Commit 072c59e

Browse files
committed
Fix coverage
1 parent cefbdf1 commit 072c59e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/graphql/execution/execute.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1354,12 +1354,9 @@ def create_source_event_stream(
13541354
separating these two steps. For more on this, see the "Supporting Subscriptions
13551355
at Scale" information in the GraphQL spec.
13561356
"""
1357-
if not execution_context_class:
1358-
execution_context_class = ExecutionContext
1359-
13601357
# If a valid context cannot be created due to incorrect arguments,
13611358
# a "Response" with only errors is returned.
1362-
context = execution_context_class.build(
1359+
context = (execution_context_class or ExecutionContext).build(
13631360
schema,
13641361
document,
13651362
root_value,

0 commit comments

Comments
 (0)