Skip to content

Commit b630116

Browse files
committed
Use try block to bypass the error
1 parent 544461a commit b630116

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webssh/handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,10 @@ def open(self):
405405
worker = workers.get(worker_id)
406406
if worker:
407407
workers[worker_id] = None
408-
if self.stream:
408+
try:
409409
self.set_nodelay(True)
410+
except AssertionError: # tornado 6.00 bug
411+
pass
410412
worker.set_handler(self)
411413
self.worker_ref = weakref.ref(worker)
412414
self.loop.add_handler(worker.fd, worker, IOLoop.READ)

0 commit comments

Comments
 (0)