mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Simplify error handling for errors in sending sync messages from js
This commit is contained in:
parent
18ff9c5e1c
commit
5c797f9672
@ -396,11 +396,10 @@ define(["widgets/js/manager",
|
||||
}
|
||||
}
|
||||
that.comm.send({method: 'backbone', sync_data: state, buffer_keys: buffer_keys}, callbacks, {}, buffers);
|
||||
}).catch(utils.reject("Couldn't send widget sync message", true))
|
||||
.catch(function(error) {
|
||||
that.pending_msgs--;
|
||||
return error;
|
||||
});
|
||||
}).catch(function(error) {
|
||||
that.pending_msgs--;
|
||||
return (utils.reject("Couldn't send widget sync message", true))(error);
|
||||
});
|
||||
},
|
||||
|
||||
serialize: function(model, attrs) {
|
||||
|
Loading…
Reference in New Issue
Block a user