Condom againt bad custom.js

This commit is contained in:
Pierre Gerold 2016-04-20 17:35:38 +02:00
parent 89f942029d
commit be52aa38f9

View File

@ -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;