From 24045332c5ec3929b30490d5993b29b3eaf593f7 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 21 Sep 2005 22:37:23 +0000 Subject: [PATCH] [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 --- paramiko/ssh_exception.py | 3 +++ 1 file changed, 3 insertions(+) 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): """