From 66118cad8328ca6ee19a5aec7ea1c972399ec746 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Sat, 8 Sep 2012 23:13:13 -0700 Subject: [PATCH] Improve unknown-server exception language Fixes #11 (cherry picked from commit 01ab79211c3aeeb8dd55dafff3ce7b3a77844ca6) --- paramiko/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/client.py b/paramiko/client.py index 3ccb52b..94bc479 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -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):