Skip to content

Commit 0c08b7c

Browse files
authored
Fix _SWITCH_UPGRADE without proposal error message
1 parent d6f470e commit 0c08b7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

h11/_state.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,7 @@ def process_event(
283283
assert role is SERVER
284284
if server_switch_event not in self.pending_switch_proposals:
285285
raise LocalProtocolError(
286-
"Received server {} event without a pending proposal".format(
287-
server_switch_event
288-
)
286+
"Received server _SWITCH_UPGRADE event without a pending proposal"
289287
)
290288
_event_type = (event_type, server_switch_event)
291289
if server_switch_event is None and _event_type is Response:

0 commit comments

Comments
 (0)