Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (12 sloc) 0.335 kb
8fbb79f @comex bad crap
authored
1 import sys
2 def construct_try(func):
3 try:
4 return func()
5 except Exception, e:
6 tb = sys.exc_traceback
7 while tb is not None:
8 self = tb.tb_frame.f_locals.get('self')
9 if self is not None:
10 print >> sys.stderr, 'self tb:', self
11 tb = tb.tb_next
12 raise
13
Something went wrong with that request. Please try again.