Skip to content

Commit

Permalink
Merge pull request #61 from golf-player/master
Browse files Browse the repository at this point in the history
Fixing AttributeError when kernel cleanup occurs before the kernel is created.
  • Loading branch information
davidbrochart authored May 19, 2020
2 parents 0ab3cc5 + f42f6b0 commit 2d862a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ async def async_execute(self, **kwargs):
The executed notebook.
"""
reset_kc = kwargs.get('reset_kc', False)
if reset_kc:
if reset_kc and self.km:
await self._async_cleanup_kernel()
self.reset_execution_trackers()

Expand Down

0 comments on commit 2d862a9

Please sign in to comment.