I spawned Greenlet and associated it with the callee. After some time, Greenlett fails with the Exception. The linked caller is called. This is all great!
Here's the problem:
Tracking for Exception appears on my console, as you would expect. But I want to do something with this trace inside the associated caller. How to access this trace inside a linked caller?
(My first instinct was to use traceback.extract_stack()
, but it turned out that it provides tracing for the associated caller, not an exception.)
source share