always close cursor

This commit is contained in:
Clint Armstrong
2015-09-09 10:04:55 -04:00
parent 7f69855f41
commit b2f7eba5c7
+1
View File
@@ -80,6 +80,7 @@ class DB:
self.connect()
except (AttributeError, MySQLdb.ProgrammingError):
log.warning('WARNING: MySQL Programming Error during query, attempting query again.')
cursor.close()
def get_config_data():