diff --git a/spyder_kernels/comms/commbase.py b/spyder_kernels/comms/commbase.py index 4ac912a5..20e3a8a3 100644 --- a/spyder_kernels/comms/commbase.py +++ b/spyder_kernels/comms/commbase.py @@ -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'],