We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d8ed2 commit 5ec445fCopy full SHA for 5ec445f
src/isolate/connections/grpc/agent.py
@@ -126,11 +126,11 @@ def execute_function(
126
# TODO: technically any sort of exception could be raised here, since
127
# depickling is basically involves code execution from the *user*.
128
function = from_grpc(function)
129
- except SerializationError:
130
- traceback.print_exc()
131
- raise AbortException(
132
- f"The {function_kind} function could not be deserialized."
133
- )
+ except SerializationError as exc:
+ str_tb = traceback.format_exc()
+ self.log(str_tb)
+ self.log(f"The {function_kind} function could not be deserialized.")
+ return exc, True, str_tb
134
135
if not callable(function):
136
raise AbortException(
0 commit comments