diff --git a/acapy_agent/wallet/askar.py b/acapy_agent/wallet/askar.py index 9121320372..4be4ce29e4 100644 --- a/acapy_agent/wallet/askar.py +++ b/acapy_agent/wallet/askar.py @@ -898,7 +898,7 @@ def _create_keypair(key_type: KeyType, seed: Union[str, bytes, None] = None) -> return Key.from_seed(alg, seed, method=method) except AskarError as err: if err.code == AskarErrorCode.INPUT: - raise WalletError("Invalid seed for key generation") from None + raise WalletError("Invalid seed for key generation") from err else: LOGGER.error(f"Unhandled Askar error code: {err.code}") raise