[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:
Robey Pointer 2005-09-21 22:37:23 +00:00
parent 4862d5955b
commit 24045332c5
1 changed files with 3 additions and 0 deletions

View File

@ -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):
"""