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
)
if not tx_rows:
return []
txids, txs = [], []
for row in tx_rows:
txids.append(row[0])