Skip to content

Commit 103a57a

Browse files
author
chengcong1
committed
upate code
1 parent 0839c93 commit 103a57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/gateway/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def handle_outgoing_message(self, incoming_msg: str, *args: Any) -> None:
146146
def handle_incoming_message(self, message: str) -> None:
147147
"""Send message to gateway server."""
148148
if self.ws is None and self.ws_future is not None:
149-
if self.ws_future.done() and isinstance(self.ws_future.exception, Exception):
149+
if self.ws_future.done() and isinstance(self.ws_future.exception(), Exception):
150150
self.log.warning(f"Exception connect to websocket {self.ws_future.exception()}")
151151
return
152152
loop = IOLoop.current()

0 commit comments

Comments
 (0)