[Twisted-Python] failures, errbacks and exception handling

Nathan nathan.stocks at gmail.com
Tue Apr 8 23:42:51 MDT 2008


On Tue, Apr 8, 2008 at 2:18 PM, Drew Smathers <drew.smathers at gmail.com> wrote:
>  def crash(reason):
>     log.err('ERROR: %s' % reason)
>     ... Do the rollback or whatever else ...
>     reason.printTraceback()

Just a note on the rollback: if there's an error, the adbapi run*
methods roll the transaction back before sending the error to the
errback -- so I don't know of anything left to rollback in the
errback.

~ Nathan




More information about the Twisted-Python mailing list