[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-58]
make the str form of BadAuthenticationType describe the allowed auth types
This commit is contained in:
parent
4862d5955b
commit
24045332c5
|
@ -54,6 +54,9 @@ class BadAuthenticationType (SSHException):
|
||||||
SSHException.__init__(self, explanation)
|
SSHException.__init__(self, explanation)
|
||||||
self.allowed_types = types
|
self.allowed_types = types
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return SSHException.__str__(self) + ' (allowed_types=%r)' % self.allowed_types
|
||||||
|
|
||||||
class PartialAuthentication (SSHException):
|
class PartialAuthentication (SSHException):
|
||||||
"""
|
"""
|
||||||
An internal exception thrown in the case of partial authentication.
|
An internal exception thrown in the case of partial authentication.
|
||||||
|
|
Loading…
Reference in New Issue