Skip to content

Commit e4b3d9f

Browse files
committed
Remove a redundant check for an internal detail
It'll still cause an exception on .execute() if somehow a third party subscription server did the wrong thing anyway
1 parent 944d949 commit e4b3d9f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

graphql_ws/base.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ def process_message(self, connection_context, parsed_message):
7171
elif op_type == GQL_START:
7272
assert isinstance(payload, dict), "The payload must be a dict"
7373

74-
params = self.get_graphql_params(connection_context, payload)
75-
if not isinstance(params, dict):
76-
error = Exception(
77-
"Invalid params returned from get_graphql_params!"
78-
" Return values must be a dict."
79-
)
80-
return self.send_error(connection_context, op_id, error)
81-
8274
# If we already have a subscription with this id, unsubscribe from
8375
# it first
8476
if connection_context.has_operation(op_id):

0 commit comments

Comments
 (0)