Skip to content

Commit

Permalink
Failsafe on kernelspec errors #120
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 12, 2018
1 parent a15b126 commit 8e8a603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def kernelspec_from_language(language):
ks = get_kernel_spec(name)
if ks.language == language:
return {'name': name, 'language': language, 'display_name': ks.display_name}
except KeyError:
except (KeyError, ValueError):
pass
return None

Expand Down

0 comments on commit 8e8a603

Please sign in to comment.