diff options
-rw-r--r-- | cryptography/hazmat/backends/multibackend.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py index 6182f5cf..6741f045 100644 --- a/cryptography/hazmat/backends/multibackend.py +++ b/cryptography/hazmat/backends/multibackend.py @@ -306,10 +306,7 @@ class MultiBackend(object): def load_pkcs8_pem_private_key(self, data, password): for b in self._filtered_backends(PKCS8SerializationBackend): - try: - return b.load_pkcs8_pem_private_key(data, password) - except UnsupportedAlgorithm: - continue + return b.load_pkcs8_pem_private_key(data, password) raise UnsupportedAlgorithm( "This backend does not support this key serialization.", |