[Twisted-Python] Re: catching adbapi 'thread' failures
Tsai Li Ming
mailinglist at ltsai.com
Thu Aug 19 08:08:29 MDT 2004
Clark C. Evans wrote:
> Ahh, right "log.deferr()". Glad to see this is taken out, lots of
> 'SQL' errors which are not application errors. Thanks.
>
> Clark
>
> On Wed, Aug 18, 2004 at 09:52:01PM -0700, Dave Peticolas wrote:
> | adbapi used to log failures before throwing them back.
> | This may be what you are seeing.
> |
> | dave
Hi Clark,
What do you mean by taken out? I'm still seeing it in adapi.py:
def _runInteraction(self, interaction, *args, **kw):
trans = Transaction(self, self.connect())
try:
result = interaction(trans, *args, **kw)
trans.close()
trans._connection.commit()
return result
except:
log.msg('Exception in SQL interaction. Rolling back.')
log.deferr()
trans._connection.rollback()
raise
I'm using twisted 1.3.0
Liming
More information about the Twisted-Python
mailing list