From 80d230d5c2d3b5a31f6307926b929d972ad8b8be Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Tue, 13 Nov 2018 00:05:05 +0100 Subject: [PATCH] Failsafe on kernelspec errors #120 https://travis-ci.com/mwouts/jupytext/jobs/158056709 --- jupytext/contentsmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupytext/contentsmanager.py b/jupytext/contentsmanager.py index 1c8ddb397..b5302146b 100644 --- a/jupytext/contentsmanager.py +++ b/jupytext/contentsmanager.py @@ -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