manage_sql.py: return True
was missing from sql_conn()
This commit is contained in:
parent
64a935b301
commit
5e68a9f7be
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue