Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
@comex
14 lines (12 sloc) 0.335 kb
import sys
def construct_try(func):
try:
return func()
except Exception, e:
tb = sys.exc_traceback
while tb is not None:
self = tb.tb_frame.f_locals.get('self')
if self is not None:
print >> sys.stderr, 'self tb:', self
tb = tb.tb_next
raise
Jump to Line
Something went wrong with that request. Please try again.