Skip to content

Commit eb30002

Browse files
committed
Use a set for filter exceptions
1 parent 7aaccbd commit eb30002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/services/kernels/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ def write_stderr(error_message):
281281

282282
channel = getattr(stream, 'channel', None)
283283
msg_type = json.loads(fed_msg_list[1])['msg_type']
284-
if channel == 'iopub' and msg_type not in ['status', 'comm_info_reply', 'kernel_info_reply', 'execute_input']:
285-
284+
if channel == 'iopub' and msg_type not in {'status', 'comm_open', 'execute_input'}:
285+
286286
# Remove the counts queued for removal.
287287
now = IOLoop.current().time()
288288
while len(self._iopub_window_byte_queue) > 0:

0 commit comments

Comments
 (0)