From a3c458f237a9346d10364ffc2036e8c2d487891b Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Thu, 1 Jun 2017 14:25:11 -0700 Subject: Missed a spot --- paramiko/ssh_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 746fd213..280a7f39 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -109,7 +109,7 @@ class BadHostKeyException (SSHException): .. versionadded:: 1.6 """ def __init__(self, hostname, got_key, expected_key): - message = 'Host key for server {0} does not match: got {0}, expected {0}' # noqa + message = 'Host key for server {0} does not match: got {1}, expected {2}' # noqa message = message.format( hostname, got_key.get_base64(), expected_key.get_base64()) -- cgit v1.2.3