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:
parent
0caea03428
commit
e4e4e336b4
|
@ -336,7 +336,11 @@ class AXFRDaemonInstance(object):
|
||||||
zone_modified = False
|
zone_modified = False
|
||||||
|
|
||||||
# Set up our SQL cursor
|
# Set up our SQL cursor
|
||||||
|
try:
|
||||||
sql_curs = self.sql_conn.cursor()
|
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
|
||||||
|
|
Loading…
Reference in New Issue