Improve unknown-server exception language
Fixes #11 (cherry picked from commit 01ab79211c3aeeb8dd55dafff3ce7b3a77844ca6)
This commit is contained in:
parent
681a465f32
commit
66118cad83
|
@ -83,7 +83,7 @@ class RejectPolicy (MissingHostKeyPolicy):
|
|||
def missing_host_key(self, client, hostname, key):
|
||||
client._log(DEBUG, 'Rejecting %s host key for %s: %s' %
|
||||
(key.get_name(), hostname, hexlify(key.get_fingerprint())))
|
||||
raise SSHException('Unknown server %s' % hostname)
|
||||
raise SSHException('Server %r not found in known_hosts' % hostname)
|
||||
|
||||
|
||||
class WarningPolicy (MissingHostKeyPolicy):
|
||||
|
|
Loading…
Reference in New Issue