summaryrefslogtreecommitdiff
path: root/paramiko/ecdsakey.py
diff options
context:
space:
mode:
authorJared Hobbs <jared@pyhacker.com>2018-11-27 18:01:19 -0700
committerJared Hobbs <jared@pyhacker.com>2018-11-27 18:01:19 -0700
commit2dcdba72cf79f8bc1a72426c879afedf1fa47f72 (patch)
tree1cd01cccbc5119ba25b4dd441b022664d5e4abe2 /paramiko/ecdsakey.py
parent6b374a33f36c662a8c1c1deea44747de398d8da0 (diff)
downloadparamiko-2dcdba72cf79f8bc1a72426c879afedf1fa47f72.tar.gz
blacken, tests
Diffstat (limited to 'paramiko/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 8b12520e..5f39867a 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -295,7 +295,7 @@ class ECDSAKey(PKey):
curve, verkey, sigkey = self._uint32_cstruct_unpack(data, "sss")
try:
key = ec.derive_private_key(sigkey, curve, default_backend())
- except TypeError as e:
+ except (AttributeError, TypeError) as e:
raise SSHException(str(e))
else:
raise SSHException("unknown private key format.")