catch cursor close

This commit is contained in:
Clint Armstrong
2015-09-14 09:39:51 -04:00
parent b68df56b14
commit f5d6ad62b3
+4 -1
View File
@@ -96,7 +96,10 @@ class DB:
self.connect()
except (AttributeError, MySQLdb.ProgrammingError):
log.warning('WARNING: MySQL Programming Error during query, attempting query again.')
cursor.close()
try:
cursor.close()
except:
pass
def get_config_data():