sqlalchemy api changes
authorAdam Glasgall <glasgall@mit.edu>
Tue, 30 Apr 2013 17:11:40 +0000 (13:11 -0400)
committerAdam Glasgall <glasgall@mit.edu>
Tue, 30 Apr 2013 17:11:40 +0000 (13:11 -0400)
debian/changelog
invirt-dns

index 83549ad..4527707 100644 (file)
@@ -1,3 +1,9 @@
+invirt-dns (0.0.14~glasgall2) precise; urgency=low
+
+  * SQLAlchemy API changes (SQLError is now DBAPIError
+
+ -- Adam Glasgall <glasgall@mit.edu>  Tue, 30 Apr 2013 13:11:12 -0400
+
 invirt-dns (0.0.14~glasgall1) precise; urgency=low
 
   * rebuild for precise
index 672d1f4..5b24d31 100755 (executable)
@@ -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"