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

fixed errors.InterfaceError("No result set to fetch from.")

parent 92204532
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,14 @@ def query(operation, *params, delim="sep"):
operation, params = fix_query(operation, params)
cur = get_dbcursor()
cur.execute(operation, params)
try
rows = cur.fetchall()
except mysql.connector.errors.InterfaceError as ie:
if ie.msg == 'No result set to fetch from.':
# no problem, we were just at the end of the result set
pass
else:
raise
res = []
for row in rows:
res.append({})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment