forked from grifon/python-module-mysql
manage_sql.py: return True
was missing from sql_conn()
This commit is contained in:
parent
64a935b301
commit
5e68a9f7be
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ class HandleSql:
|
||||||
global conn
|
global conn
|
||||||
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)
|
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
return True
|
||||||
except pymysql.DatabaseError as error:
|
except pymysql.DatabaseError as error:
|
||||||
print(error)
|
print(error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue