From: Adam Glasgall Date: Tue, 30 Apr 2013 17:11:40 +0000 (-0400) Subject: sqlalchemy api changes X-Git-Tag: 0.0.15~3 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dns.git/commitdiff_plain/66f0546472e36a789a40be2b189c645a269efee4 sqlalchemy api changes --- diff --git a/debian/changelog b/debian/changelog index 83549ad..4527707 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-dns (0.0.14~glasgall2) precise; urgency=low + + * SQLAlchemy API changes (SQLError is now DBAPIError + + -- Adam Glasgall Tue, 30 Apr 2013 13:11:12 -0400 + invirt-dns (0.0.14~glasgall1) precise; urgency=low * rebuild for precise diff --git a/invirt-dns b/invirt-dns index 672d1f4..5b24d31 100755 --- a/invirt-dns +++ b/invirt-dns @@ -45,7 +45,7 @@ class DatabaseAuthority(common.ResolverBase): for i in range(3): try: value = self._lookup_unsafe(name, cls, type, timeout = None) - except (psycopg2.OperationalError, sqlalchemy.exceptions.SQLError): + except (psycopg2.OperationalError, sqlalchemy.exceptions.DBAPIError): if i == 2: raise print "Reloading database"