File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -337,11 +337,11 @@ def stop_channels(self) -> None:
337
337
def channels_running (self ) -> bool :
338
338
"""Are any of the channels created and running?"""
339
339
return (
340
- self .shell_channel .is_alive ()
341
- or self .iopub_channel .is_alive ()
342
- or self .stdin_channel .is_alive ()
343
- or self .hb_channel .is_alive ()
344
- or self .control_channel .is_alive ()
340
+ ( self ._shell_channel and self . shell_channel .is_alive () )
341
+ or ( self ._iopub_channel and self . iopub_channel .is_alive () )
342
+ or ( self ._stdin_channel and self . stdin_channel .is_alive () )
343
+ or ( self ._hb_channel and self . hb_channel .is_alive () )
344
+ or ( self ._control_channel and self . control_channel .is_alive () )
345
345
)
346
346
347
347
ioloop = None # Overridden in subclasses that use pyzmq event loop
You can’t perform that action at this time.
0 commit comments