Skip to content

Commit 2b6bbfe

Browse files
committed
handle empty updates
1 parent 21c7178 commit 2b6bbfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlite_minutils/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ def query(
421421
parameters, or a dictionary for ``where id = :id``
422422
"""
423423
cursor = self.execute(sql, tuple(params or tuple()))
424+
if cursor.description is None: return []
424425
keys = [d[0] for d in cursor.description]
425426
for row in cursor:
426427
yield dict(zip(keys, row))

0 commit comments

Comments
 (0)