Update db.py
Just making sure points is not `None` (when it is not possible to get the number of points for example)
This commit is contained in:
parent
3770fa6451
commit
05b88945ed
@ -33,6 +33,9 @@ def get_row(compte, points, mycursor, same_points = True): #return if there is a
|
||||
|
||||
|
||||
def add_to_database(compte, points, sql_host,sql_usr,sql_pwd,sql_database, save_if_fail=True):
|
||||
if points is None:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
mydb = mysql.connector.connect(
|
||||
host=sql_host,
|
||||
|
Loading…
Reference in New Issue
Block a user