@ -38,7 +38,7 @@ class Authentication:
# Check if new user can be created
res = c.execute("SELECT 1 FROM new WHERE user=?",
(user,)).fetchone()
if res is None and res[0] != 1:
if res is None or res[0] != 1:
return False
c.execute("DELETE FROM new WHERE user=?", (user,))