From 0a5c57de9e70d5cff481f53e790c1aca9e0ce1b0 Mon Sep 17 00:00:00 2001 From: alighazi288 <51366992+alighazi288@users.noreply.github.com> Date: Thu, 26 Dec 2024 17:55:51 -0500 Subject: [PATCH] handle incorrect passphrase with additional debug info - Ensured the passphrase argument is correctly passed to the PassphraseWrong exception. --- src/borg/crypto/key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/crypto/key.py b/src/borg/crypto/key.py index 82ac416c7b..12fc9ee7f6 100644 --- a/src/borg/crypto/key.py +++ b/src/borg/crypto/key.py @@ -375,7 +375,7 @@ def detect(cls, repository, manifest_data): raise PasswordRetriesExceeded else: if not key.load(target, passphrase): - raise PassphraseWrong + raise PassphraseWrong(passphrase) key.init_ciphers(manifest_data) key._passphrase = passphrase return key