Well it's not so evil if all you're doing is testing to see if commit() is available -- I wasn't trying to suggest that it was a great pattern for your whole application.
On 6/8/07, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > > --On 8. Juni 2007 14:05:39 -0400 Rick Morrison <[EMAIL PROTECTED]> > wrote: > > > try: > > t.commit() > > except: > > print 'Holy cow, this database is lame' > > > > > > This code is also lame :-) The code should work > for arbitrary DSNs and swallowing an exception while > committing is evil, evil, evil. > > -aj > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---