diff --git a/db.py b/db.py index 94f8bdc30ff2c2c5c036941ee7f674fb18b14e46..1fa42f3a3d6a710e0cf34463c60aa2efe8186f2b 100644 --- a/db.py +++ b/db.py @@ -61,6 +61,7 @@ def query(operation, *params, delim="sep"): operation, params = fix_query(operation, params) cur = get_dbcursor() cur.execute(operation, params) + rows = [] try: rows = cur.fetchall() except mysql.connector.errors.InterfaceError as ie: