summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 20:52:11 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 20:52:11 -0400
commita829c432f679ff13554729569be3e4237c3e4cef (patch)
treed1b02fe9ea26956babffae42b09a404d57d47370
parentdccc563c3a581a14ceaa261b5fe0d08539f84b87 (diff)
downloadparamiko-a829c432f679ff13554729569be3e4237c3e4cef.tar.gz
Python 2.7 fix for new exception message work
-rw-r--r--paramiko/ssh_exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py
index 77b9efda..b525468a 100644
--- a/paramiko/ssh_exception.py
+++ b/paramiko/ssh_exception.py
@@ -126,7 +126,7 @@ class BadHostKeyException(SSHException):
def __str__(self):
msg = (
- "Host key for server {!r} does not match: got {!r}, expected {!r}"
+ "Host key for server '{}' does not match: got '{}', expected '{}'"
) # noqa
return msg.format(
self.hostname,