Skip to content

Commit

Permalink
Merge pull request #18 from qutech/hotfix/vscode_interactive_terminal
Browse files Browse the repository at this point in the history
Make vscode's interactive terminal work
  • Loading branch information
thangleiter committed Apr 7, 2020
2 parents c25d04a + d7d52d4 commit 2578a34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions filter_functions/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@ def _get_notebook_name() -> str:
params={'token': ss.get('token', '')})
for nn in json.loads(response.text):
if nn['kernel']['id'] == kernel_id:
relative_path = nn['notebook']['path']
return os.path.join(ss['notebook_dir'], relative_path)
try:
relative_path = nn['notebook']['path']
return os.path.join(ss['notebook_dir'], relative_path)
except KeyError:
return ''

return ''

Expand Down

0 comments on commit 2578a34

Please sign in to comment.