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:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user