[fix] Close connection in mysql_conn module

This commit is contained in:
William Wernert committed 2020-11-10 11:42:40 -05:00
1 parent 6557155a8a
commit 676b4f0777
1 file changed
+1
+1
View File
@@ -34,6 +34,7 @@ def mysql_conn(retry):
db.query("""SELECT 1;""")
log.debug(f'Successfully completed query against MySQL server on {mainip}')
db.close()
mysql_up = True
break
except _mysql.OperationalError as e: