Skip to content

Commit

Permalink
Merge pull request #476 from impact27/fix_remote_error
Browse files Browse the repository at this point in the history
PR: Send back pickling error correctly
  • Loading branch information
ccordoba12 authored Dec 18, 2023
2 parents d282829 + 5e31790 commit 75a8dbc
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'].get('is_error', False):
# 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 75a8dbc

Please sign in to comment.