Better HN
topnewbestaskshowjobs
Log inSign up

rafaelbco

1 karma · joined May 12, 2014 (12y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

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.