Skip to content

Commit

Permalink
return None kernel_spec if kernel_name not set
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Jan 27, 2018
1 parent 7467116 commit 09c96b8
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 @@ -77,7 +77,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 09c96b8

Please sign in to comment.