diff --git a/paramiko/transport.py b/paramiko/transport.py index 0eb9c7c..134c4f5 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))