diff options
author | Robey Pointer <robey@lag.net> | 2005-09-21 22:37:23 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-09-21 22:37:23 +0000 |
commit | 24045332c5ec3929b30490d5993b29b3eaf593f7 (patch) | |
tree | 89aa09bcd9eaf09e471078b37ee9ea4084fe7c0f | |
parent | 4862d5955bdc8275fe5c03cceffd73448b130812 (diff) |
[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
-rw-r--r-- | paramiko/ssh_exception.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 498ebc2c..031623e2 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): """ |