Skip to content

Commit

Permalink
🎨 Add timeout error description
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Dec 10, 2024
1 parent 51a3c42 commit 1b9b7a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/services/onboarding/util/register_issuer_did.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ async def register_issuer_did(
logger.info("Creating DID for issuer")
issuer_did = await acapy_wallet.create_did(issuer_controller)

logger.info("Registering issuer DID on ledger")
await acapy_ledger.register_nym_on_ledger(
issuer_controller,
did=issuer_did.did,
Expand Down Expand Up @@ -292,7 +291,7 @@ async def wait_transactions_endorsed(
logger.error(
"Maximum number of retries exceeded with exception. Failing."
)
raise asyncio.TimeoutError from e # Raise TimeoutError if max attempts exceeded
raise asyncio.TimeoutError("Timeout waiting for endorsement") from e

logger.warning(
(
Expand All @@ -309,4 +308,4 @@ async def wait_transactions_endorsed(
attempt += 1

logger.error("Maximum number of retries exceeded while waiting for transaction ack")
raise asyncio.TimeoutError
raise asyncio.TimeoutError("Timeout waiting for endorsement")

0 comments on commit 1b9b7a4

Please sign in to comment.