[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
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue