diff --git a/torba/basedatabase.py b/torba/basedatabase.py index 03b353f40..cdbfe08ce 100644 --- a/torba/basedatabase.py +++ b/torba/basedatabase.py @@ -335,6 +335,9 @@ class BaseDatabase(SQLiteMixin): **constraints ) + if not tx_rows: + return [] + txids, txs = [], [] for row in tx_rows: txids.append(row[0])