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