Changeset 312 for trunk/packages/sipb-xen-dns/code
- Timestamp:
- Mar 29, 2008, 5:09:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-dns/code/dnsserver.py
r311 r312 27 27 expire=3600000, minimum=21600, ttl=3600) 28 28 def _lookup(self, name, cls, type, timeout = None): 29 print 'Starting lookup'30 29 for i in range(3): 31 30 try: … … 33 32 except (psycopg2.OperationalError, sqlalchemy.exceptions.SQLError): 34 33 if i == 2: 35 print 'failed'36 34 raise 37 35 print "Reloading database" … … 39 37 continue 40 38 else: 41 print 'done'42 39 return value 43 40
Note: See TracChangeset
for help on using the changeset viewer.