diff options
author | David Kupka <dkupka@redhat.com> | 2016-08-03 10:35:40 +0200 |
---|---|---|
committer | David Kupka <dkupka@redhat.com> | 2016-08-03 13:40:34 +0200 |
commit | 8ab0ad5b9ef59eca7b25a150baeb4a9bf8faa582 (patch) | |
tree | 06e1513648c11e5e7f08411cfb9750f676265bbf /ipaclient | |
parent | 64db0592490493a060c7983acdfdf9100d9ea813 (diff) | |
download | freeipa-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.py | 2 |
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')) |