From 32b1a8e0268ec0585ee71b9d8d6d2413fd978be7 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 7 Jul 2014 16:23:44 -0500 Subject: remove unneeded try/catch --- cryptography/hazmat/backends/multibackend.py | 5 +---- 1 file changed, 1 insertion(+), 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.", -- cgit v1.2.3