Before, it would sometimes return False, which resulted in an exception
trying to unpack it as a tuple.
conn = connect(**self.dbconfig)
if not conn:
- return False
+ return (False, False)
# Get some data. Note that we interpolate the prefix ourselves, since
# letting the mysql library do it only works with values (it adds ''
# No data? No login.
if (cursor.rowcount == 0):
conn.close()
- return False
+ return (False, False)
# Check password
row = cursor.fetchone()