short circuit adding annotations when get_transaction does not return anything

This commit is contained in:
Lex Berezhny 2018-10-09 23:57:41 -04:00
parent 7f09405335
commit d4f964ef8e

View file

@ -335,6 +335,9 @@ class BaseDatabase(SQLiteMixin):
**constraints **constraints
) )
if not tx_rows:
return []
txids, txs = [], [] txids, txs = [], []
for row in tx_rows: for row in tx_rows:
txids.append(row[0]) txids.append(row[0])