When you called 'commit', the 'account' object got expired.  

There are a few ways in the FAQ or Wiki to deal with this.  IIRC, you can 
`merge` objects back into the session or `refresh` the object.  One or both 
might hit the database.

It would probably be better to change your code a bit, so you only commit 
once.  IMHO If your database supports savepoints, that would probably be 
the best option -- then you could have a list of Success and Fails, and not 
have one error kill the entire transaction.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to