Skip to content

Commit 9423fc0

Browse files
palkeoKriechi
authored andcommitted
formatting
1 parent e6f194f commit 9423fc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wsproto/handshake.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ def _process_connection_request( # noqa: MC0001
238238
)
239239
if upgrade.lower() != WEBSOCKET_UPGRADE:
240240
raise RemoteProtocolError(
241-
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'", event_hint=RejectConnection()
241+
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'",
242+
event_hint=RejectConnection(),
242243
)
243244
if host is None:
244245
raise RemoteProtocolError(
@@ -407,7 +408,8 @@ def _establish_client_connection(
407408
)
408409
if upgrade.lower() != WEBSOCKET_UPGRADE:
409410
raise RemoteProtocolError(
410-
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'", event_hint=RejectConnection()
411+
f"Missing header, 'Upgrade: {WEBSOCKET_UPGRADE.decode()}'",
412+
event_hint=RejectConnection(),
411413
)
412414
accept_token = generate_accept_token(self._nonce)
413415
if accept != accept_token:

0 commit comments

Comments
 (0)