Explicitly close sql cursor after query

master
Simon 4 years ago
parent e12ff92ec1
commit 0ab5c478e7

@ -93,7 +93,7 @@ class useMYSQL:
CONFIG['SYSTEMS'][callsign].update({'PEERS': {}})
except TypeError:
logger.info('(MYSQL) Problem with data from MySQL - TypeError, carrying on to next row')
_cursor.close()
return(CONFIG['SYSTEMS'])

Loading…
Cancel
Save

Powered by TurnKey Linux.