Skip to content

Commit

Permalink
Merge pull request #344 from rgbkrk/allow-none-kernelspec
Browse files Browse the repository at this point in the history
return None kernel_spec if kernel_name not set
  • Loading branch information
takluyver authored Feb 6, 2018
2 parents 9c31adf + 09c96b8 commit 37d1104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_client/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _kernel_name_changed(self, name, old, new):

@property
def kernel_spec(self):
if self._kernel_spec is None:
if self._kernel_spec is None and self.kernel_name is not '':
self._kernel_spec = self.kernel_spec_manager.get_kernel_spec(self.kernel_name)
return self._kernel_spec

Expand Down

0 comments on commit 37d1104

Please sign in to comment.