Problem: Need better exception handling for store_unspent_outputs

Solution: Added an error message in case of a `DuplicateKeyError`
This commit is contained in:
z-bowen 2018-08-31 16:34:04 +02:00
parent 96932793b1
commit b8d55e928d

View File

@ -228,7 +228,9 @@ def store_unspent_outputs(conn, *unspent_outputs):
) )
) )
except DuplicateKeyError: except DuplicateKeyError:
# TODO log warning at least raise DuplicateKeyError(
f'Duplicate keys in transactions [{unspent_outputs}].'
)
pass pass