Thursday, May 24, 2012

Cloud SQL Python Driver Errors Change

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