diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-12-03 15:51:36 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-12-03 15:51:36 -0500 |
commit | b133afaecffe5e2cc3bbc78d8a7e2cdcf40f0191 (patch) | |
tree | 06151039f36812916c33625dc116f83cf648463f /paramiko/ecdsakey.py | |
parent | c67cf36c6596879b7e161d5c99db8c4e1c2a9c44 (diff) | |
download | paramiko-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.py | 2 |
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() |