X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dns.git/blobdiff_plain/8f01fa9fa9ba66e5de796759039021cb9beb7e8c..66f0546472e36a789a40be2b189c645a269efee4:/invirt-dns?ds=sidebyside 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"