Skip to content

Commit 788c16d

Browse files
committed
Merge pull request #229 from takluyver/i223
Catch error adding link to notebook list closes #223
2 parents c03a564 + f2c5e6b commit 788c16d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,11 @@ define([
295295
for (var i=0; i<len; i++) {
296296
model = list.content[i];
297297
item = this.new_item(i+offset, true);
298-
this.add_link(model, item);
298+
try {
299+
this.add_link(model, item);
300+
} catch(err) {
301+
console.log('Error adding link: ' + err)
302+
}
299303
}
300304
// Trigger an event when we've finished drawing the notebook list.
301305
events.trigger('draw_notebook_list.NotebookList');

0 commit comments

Comments
 (0)