Michael Bayer wrote: >> Does SQLAlchemy offer some method for me to catch this exception >> and then retry the transaction? > > there's nothing offered beyond the usual notion of catching an > exception and running the function again. It also depends very > much upon the construction of your application, whether you're > looking to do this in an ORM context, etc.
Yeah, we sort of figured. Our application uses WSGI middleware to wrap particular requests in transactions. We ended up writing something in there to catch this particular exception and re-run the request up to three times. Its not quite as pretty as I'd like, but it works :) -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
