It is surprising and confusing for users to see our code in their tracebacks if their function raised some exception, we should hide that during normal operations.
The way isolate and fal currently work we would need to just litteraly walk through the traceback and remove stuff that is not from the user code, but I'm also considering maybe changing the logic in isolate's load_serialized_object to not raise but instead return something that could both cover a return value and an exception, so that we can later decide how to handle it and have nice original traceback to work with.
It is surprising and confusing for users to see our code in their tracebacks if their function raised some exception, we should hide that during normal operations.
The way isolate and fal currently work we would need to just litteraly walk through the traceback and remove stuff that is not from the user code, but I'm also considering maybe changing the logic in isolate's
load_serialized_object
to not raise but instead return something that could both cover a return value and an exception, so that we can later decide how to handle it and have nice original traceback to work with.This is relevant for both api and cli.