Skip to content

Commit

Permalink
Fix issue with unconfirmed txs in Service class
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jun 14, 2024
1 parent b139c6f commit b89d61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoinlib/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def gettransactions(self, address, after_txid='', limit=MAX_TRANSACTIONS):
if txs is False:
raise ServiceError("Error when retrieving transactions from service provider")
for tx in txs:
if not tx.date.tzinfo:
if tx.date and not tx.date.tzinfo:
tx.date = tx.date.replace(tzinfo=timezone.utc)

# Store transactions and address in cache
Expand Down

0 comments on commit b89d61b

Please sign in to comment.