Skip to content

Commit

Permalink
Merge pull request #229 from takluyver/i223
Browse files Browse the repository at this point in the history
Catch error adding link to notebook list

closes #223
  • Loading branch information
minrk committed Jul 23, 2015
2 parents c03a564 + f2c5e6b commit 788c16d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notebook/static/tree/js/notebooklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ define([
for (var i=0; i<len; i++) {
model = list.content[i];
item = this.new_item(i+offset, true);
this.add_link(model, item);
try {
this.add_link(model, item);
} catch(err) {
console.log('Error adding link: ' + err)
}
}
// Trigger an event when we've finished drawing the notebook list.
events.trigger('draw_notebook_list.NotebookList');
Expand Down

0 comments on commit 788c16d

Please sign in to comment.