Skip to content

Commit 42f874f

Browse files
committed
add comment explaining exception handling
1 parent d08ee33 commit 42f874f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vpython/no_notebook.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
import copy
1515
import socket
1616
import multiprocessing
17-
import pdb
18-
1917

2018
import signal
2119
from urllib.parse import unquote
@@ -215,8 +213,12 @@ async def onMessage(self, data, isBinary):
215213
try:
216214
await loop.run_in_executor(None, GW.handle_msg, msg)
217215
except:
216+
#
217+
# this will throw a runtime exception after the main Thread
218+
# has stopped, but we don't really case since the main thread
219+
# is no longer there to do anything anyway.
218220
pass
219-
221+
220222
def onClose(self, wasClean, code, reason):
221223
"""Called when browser tab is closed."""
222224
global websocketserving

0 commit comments

Comments
 (0)