Skip to content

Commit

Permalink
send back error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Nov 11, 2023
1 parent 8ef4340 commit 16cf6b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spyder_kernels/comms/commbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ def _handle_remote_call(self, msg, buffer):
"""Handle a remote call."""
msg_dict = msg['content']
self.on_incoming_call(msg_dict)
if msg['content']['is_error']:
# could not open the pickle
self._set_call_return_value(msg, buffer, is_error=True)
return
try:
return_value = self._remote_callback(
msg_dict['call_name'],
Expand Down

0 comments on commit 16cf6b7

Please sign in to comment.