diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 498ebc2..031623e 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -53,6 +53,9 @@ class BadAuthenticationType (SSHException): def __init__(self, explanation, types): SSHException.__init__(self, explanation) self.allowed_types = types + + def __str__(self): + return SSHException.__str__(self) + ' (allowed_types=%r)' % self.allowed_types class PartialAuthentication (SSHException): """