summaryrefslogtreecommitdiffstats
path: root/ipaclient
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2016-08-03 10:35:40 +0200
committerDavid Kupka <dkupka@redhat.com>2016-08-03 13:40:34 +0200
commit8ab0ad5b9ef59eca7b25a150baeb4a9bf8faa582 (patch)
tree06e1513648c11e5e7f08411cfb9750f676265bbf /ipaclient
parent64db0592490493a060c7983acdfdf9100d9ea813 (diff)
downloadfreeipa-8ab0ad5b9ef59eca7b25a150baeb4a9bf8faa582.tar.gz
freeipa-8ab0ad5b9ef59eca7b25a150baeb4a9bf8faa582.tar.xz
freeipa-8ab0ad5b9ef59eca7b25a150baeb4a9bf8faa582.zip
vault: Catch correct exception in decrypt
ValueError is raised when decryption fails. https://fedorahosted.org/freeipa/ticket/6160 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaclient')
-rw-r--r--ipaclient/plugins/vault.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaclient/plugins/vault.py b/ipaclient/plugins/vault.py
index e3a1ae3a0..73ad09b38 100644
--- a/ipaclient/plugins/vault.py
+++ b/ipaclient/plugins/vault.py
@@ -164,7 +164,7 @@ def decrypt(data, symmetric_key=None, private_key=None):
label=None
)
)
- except AssertionError:
+ except ValueError:
raise errors.AuthenticationError(
message=_('Invalid credentials'))