Skip to content

Commit d1d9705

Browse files
committed
return error rather than crashing
1 parent 2b26647 commit d1d9705

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/executorlib/standalone/interactive/communication.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ def receive_dict(self) -> dict:
7878
while len(response_lst) == 0:
7979
response_lst = self._poller.poll(self._time_out_ms)
8080
if not self._spawner.poll():
81-
raise ExecutorlibSocketError(
82-
"SocketInterface crashed during execution."
83-
)
81+
return {
82+
"error": ExecutorlibSocketError(
83+
"SocketInterface crashed during execution."
84+
),
85+
}
8486
data = self._socket.recv(zmq.NOBLOCK)
8587
if self._logger is not None:
8688
self._logger.warning(

0 commit comments

Comments
 (0)