Skip to content

Commit

Permalink
Update address.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 16, 2024
1 parent 7cdf721 commit f74513e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,16 @@ async def __worker_coro(queue: asyncio.Queue, ready_queue: asyncio.Queue) -> NoR
put_result = ready_queue.put_nowait

while True:
nonce = await get_next_job()
try:
put_result(await load_transaction(address, nonce, load_prices))
nonce = await get_next_job()
try:
put_result(await load_transaction(address, nonce, load_prices))
except Exception as e:
put_result((nonce, e))
except Exception as e:
put_result(nonce, e)
logger.error(f"%s in %s __worker_coro", type(e), self)
logger.exception(e)
raise

def __stop_workers(self) -> None:
for _ in range(len(_workers)):
Expand Down

0 comments on commit f74513e

Please sign in to comment.