From: Eric Price Date: Sat, 29 Mar 2008 21:09:04 +0000 (-0400) Subject: Undo accidental commit in -r 311. X-Git-Tag: sipb-xen-dns/1~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dns.git/commitdiff_plain/25a7a3668877aea61fbf110673f5a5d2f9a464ee Undo accidental commit in -r 311. svn path=/trunk/packages/sipb-xen-dns/; revision=312 --- diff --git a/code/dnsserver.py b/code/dnsserver.py index c8dbfa1..0cad87a 100755 --- a/code/dnsserver.py +++ b/code/dnsserver.py @@ -26,19 +26,16 @@ class DatabaseAuthority(common.ResolverBase): serial=1, refresh=3600, retry=900, expire=3600000, minimum=21600, ttl=3600) def _lookup(self, name, cls, type, timeout = None): - print 'Starting lookup' for i in range(3): try: value = self._lookup_unsafe(name, cls, type, timeout = None) except (psycopg2.OperationalError, sqlalchemy.exceptions.SQLError): if i == 2: - print 'failed' raise print "Reloading database" time.sleep(0.5) continue else: - print 'done' return value def _lookup_unsafe(self, name, cls, type, timeout):