Skip to content

Commit

Permalink
Merge pull request #595 from hrdl-github/fix-None
Browse files Browse the repository at this point in the history
Check for None in case we are dealing with an externally launched kernel
  • Loading branch information
ccordoba12 authored Nov 16, 2023
2 parents 4f28d1b + 20229d6 commit 4935b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtconsole/qtconsoleapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def new_frontend_master(self):
# start the kernel
kwargs = {}
# FIXME: remove special treatment of IPython kernels
if self.kernel_manager.ipykernel:
if self.kernel_manager and self.kernel_manager.ipykernel:
kwargs['extra_arguments'] = self.kernel_argv
kernel_manager.start_kernel(**kwargs)
kernel_manager.client_factory = self.kernel_client_class
Expand Down

0 comments on commit 4935b68

Please sign in to comment.