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/dsskey.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/dsskey.py')
-rw-r--r-- | paramiko/dsskey.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/dsskey.py b/paramiko/dsskey.py index f1bb330f..4d85b8ca 100644 --- a/paramiko/dsskey.py +++ b/paramiko/dsskey.py @@ -241,7 +241,7 @@ class DSSKey(PKey): keylist = self._uint32_cstruct_unpack(data, "iiiii") keylist = [0] + list(keylist) else: - raise SSHException("private key format.") + self._got_bad_key_format_id(pkformat) if type(keylist) is not list or len(keylist) < 6 or keylist[0] != 0: raise SSHException( "not a valid DSA private key file (bad ber encoding)" |