diff options
-rw-r--r-- | paramiko/transport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 0eb9c7c0..134c4f56 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1426,8 +1426,8 @@ class BaseTransport (threading.Thread): reason = m.get_int() reason_str = m.get_string() lang = m.get_string() - if _CONNECTION_FAILED_CODE.has_key(reason): - reason_text = _CONNECTION_FAILED_CODE[reason] + if CONNECTION_FAILED_CODE.has_key(reason): + reason_text = CONNECTION_FAILED_CODE[reason] else: reason_text = '(unknown code)' self._log(INFO, 'Secsh channel %d open FAILED: %s: %s' % (chanid, reason_str, reason_text)) |