diff --git a/IPython/html/static/services/kernels/js/comm.js b/IPython/html/static/services/kernels/js/comm.js
index 29c64b9..3c8fec6 100644
--- a/IPython/html/static/services/kernels/js/comm.js
+++ b/IPython/html/static/services/kernels/js/comm.js
@@ -172,7 +172,13 @@ var IPython = (function (IPython) {
Comm.prototype._maybe_callback = function (key, msg) {
var callback = this['_' + key + '_callback'];
- if (callback) callback(msg);
+ if (callback) {
+ try {
+ callback(msg);
+ } catch (e) {
+ console.log("Exception in Comm callback", e, msg);
+ }
+ }
};
Comm.prototype.handle_msg = function (msg) {