manage_sql.py: return True was missing from sql_conn()

This commit is contained in:
Alarig Le Lay 2020-11-21 13:28:11 +01:00
parent 64a935b301
commit 5e68a9f7be
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -53,6 +53,7 @@ class HandleSql:
global conn
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)
cur = conn.cursor()
return True
except pymysql.DatabaseError as error:
print(error)