Michael Bayer schrieb: > thats fine...but also why cant you just say try: session.commit() > except: session.rollback(); raise ?
This would raise an error when the session is already inactive. I don't want an error in this case. On the other hand, if I remove the raise statement, then errors on commit would be swallowed. I thought about catching only InvalidRequestError, but this might also catch too much. -- Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---