From be52aa38f974fc22c17822a34ed8d9c80acd9a97 Mon Sep 17 00:00:00 2001 From: Pierre Gerold Date: Wed, 20 Apr 2016 17:35:38 +0200 Subject: [PATCH] Condom againt bad custom.js --- notebook/static/notebook/js/main.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/notebook/static/notebook/js/main.js b/notebook/static/notebook/js/main.js index c5030d42b..fafdd77d5 100644 --- a/notebook/static/notebook/js/main.js +++ b/notebook/static/notebook/js/main.js @@ -52,8 +52,13 @@ require([ // Pull typeahead from the global jquery object var typeahead = $.typeahead; - - requirejs(['custom/custom'], function() {}); + + try{ + requirejs(['custom/custom'], function() {}); + } catch(err) { + console.warn("Error processing custom.js file. Logging the error and continuing") + console.log(err); + } // compat with old IPython, remove for IPython > 3.0 window.CodeMirror = CodeMirror;