summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMengHuan Yu <cebrusfs@gmail.com>2016-05-10 03:45:25 +0800
committerJeff Forcier <jeff@bitprophet.org>2016-12-05 18:00:10 -0800
commit286b4564b8e2790dba255741ada7866a76aa57cc (patch)
treea02e06a0b64f1aee52732da5eb96d91b7ec1e226
parentf58bf03e5b500ee0db7ff5dc45c1454b82523d4e (diff)
Update ecdsakey.py
-rw-r--r--paramiko/ecdsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index d435603d..e4f74310 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -258,7 +258,7 @@ class ECDSAKey(PKey):
key = serialization.load_der_private_key(
data, password=None, backend=default_backend()
)
- except ValueError as e:
+ except (ValueError, AssertionError) as e:
raise SSHException(str(e))
self.signing_key = key