Friday, May 25, 2012

Re: Cloud SQL Python Driver Errors Change

Very pleased to see this :D

On Thursday, May 24, 2012 11:24:33 AM UTC-7, Joe Faith wrote:
As from today there will be a slight change in the behavior of the Cloud SQL Python DBAPI driver.

All errors from the database will be thrown as a DatabaseError or one of the subclasses. In particular an "Invalid connection id." error will become a DatabaseError rather than the subclass of OperationalError. 

Please ensure your code is catching DatabaseError and not just OperationalError.

thanks

-- 
Joe Faith | Product Manager | Google Cloud

No comments:

Post a Comment