Skip to content

golang: Teach recover to always return exception with .__traceback__ set even on Python2

Kirill Smelkov requested to merge kirr/pygolang:y/recover-tb into master

This makes recovered exception object a good target to be explicitly chained into (PEP 3134) via .cause because without .traceback the information about where/how recovered exception originated would be lost.

In turn, having recover to always return full exception info, should allow to use recover in "add error context"-style utilities.

Merge request reports