summaryrefslogtreecommitdiff
path: root/paramiko/ecdsakey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-12-03 15:51:36 -0500
committerJeff Forcier <jeff@bitprophet.org>2019-12-03 15:51:36 -0500
commitb133afaecffe5e2cc3bbc78d8a7e2cdcf40f0191 (patch)
tree06151039f36812916c33625dc116f83cf648463f /paramiko/ecdsakey.py
parentc67cf36c6596879b7e161d5c99db8c4e1c2a9c44 (diff)
downloadparamiko-b133afaecffe5e2cc3bbc78d8a7e2cdcf40f0191.tar.gz
Modify exception raised by weird key subclasses w/ bad pkformat
Not sure this can even really happen though
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 912795b6..28d1222b 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -298,7 +298,7 @@ class ECDSAKey(PKey):
except (AttributeError, TypeError) as e:
raise SSHException(str(e))
else:
- raise SSHException("unknown private key format.")
+ self._got_bad_key_format_id(pkformat)
self.signing_key = key
self.verifying_key = key.public_key()