class safe_reraise(object):
Reraise an exception after invoking some handler code.
Stores the existing exception info before invoking so that it is maintained across a potential coroutine context switch.
e.g.:
try: sess.commit() except: with safe_reraise(): sess.rollback()
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _exc_info |
Undocumented |
Instance Variable | warn_only |
Undocumented |