summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-09-08 23:13:13 -0700
committerJeff Forcier <jeff@bitprophet.org>2012-09-24 18:58:59 -0700
commit66118cad8328ca6ee19a5aec7ea1c972399ec746 (patch)
tree480ca33fa9b90143770c265bf28541de4fc897f4
parent681a465f327a4986c9b7232dd28e2eca7392a6f2 (diff)
Improve unknown-server exception language
Fixes #11 (cherry picked from commit 01ab79211c3aeeb8dd55dafff3ce7b3a77844ca6)
-rw-r--r--paramiko/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 3ccb52bf..94bc479a 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):