mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
always close cursor
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user