2 ms·
In Zope you can create a local variable named __traceback_info__ and its value will be inserted in the traceback. It is very useful. Like add a line to a log,
by rafaelbco 2y ago
In Zope you can create a local variable named __traceback_info__ and its value will be inserted in the traceback. It is very useful.
Like add a line to a log, but only when an traceback is shown.
See: https://zopeexceptions.readthedocs.io/en/latest/narr.html#traceback-info https://zopeexceptions.readthedocs.io/en/latest/narr.html#tr...
Seems like the zope.exceptions package can be used independent from Zope.