Handle invalid cursor setup cleanly

This seems to happen only during termination, so catch it and continue
so the loop terminates.
This commit is contained in:
Joshua Boniface 2020-02-19 16:29:59 -05:00
parent 0caea03428
commit e4e4e336b4
1 changed files with 5 additions and 1 deletions

View File

@ -336,7 +336,11 @@ class AXFRDaemonInstance(object):
zone_modified = False zone_modified = False
# Set up our SQL cursor # Set up our SQL cursor
sql_curs = self.sql_conn.cursor() try:
sql_curs = self.sql_conn.cursor()
except:
time.sleep(0.5)
continue
# Set up our basic variables # Set up our basic variables
domain = network.domain domain = network.domain