HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rafaelbco

no profile record

comments

rafaelbco
·vor 2 Jahren·discuss
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#tr...

Seems like the zope.exceptions package can be used independent from Zope.