Skip to content

Commit

Permalink
unused errors resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Mar 24, 2020
1 parent 7bf51bb commit c091f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/core/UserManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def add_regular_user(user):
try:
cursor.execute(sql, (user.userName, user.password, user.auth, user.email))
db.commit()
except MySQLdb._mysql.IntegrityError as e:
except MySQLdb._mysql.IntegrityError:
db.rollback()
return e[1]
return "username taken"
return "success"
return "db connection error"

Expand Down

0 comments on commit c091f3b

Please sign in to comment.