Skip to content
Snippets Groups Projects
Commit c30c4541 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed query

parent bbc2026d
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,7 @@ def query(operation, *params, delim="sep"): ...@@ -61,6 +61,7 @@ def query(operation, *params, delim="sep"):
operation, params = fix_query(operation, params) operation, params = fix_query(operation, params)
cur = get_dbcursor() cur = get_dbcursor()
cur.execute(operation, params) cur.execute(operation, params)
rows = []
try: try:
rows = cur.fetchall() rows = cur.fetchall()
except mysql.connector.errors.InterfaceError as ie: except mysql.connector.errors.InterfaceError as ie:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment