From fd799f25784b67241c6ae53c2f593fe06556b360 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Tue, 10 May 2011 20:43:52 +0100
Subject: [PATCH 6/9] Fix the AuthError exception

The associated information must be a tuple, not a list, since otherwise
the exception handling code will get a one element tuple with the list
inside, which not only is horrible but it also breaks the API.

This commit changes that into a tuple, which provides the expected
behaviour.

In the future we should move to just use the recommended form:

	raise AuthError(911, 'SSL Auth failed')

but since we're close to a release, we're going with the least invasive
change for now.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 msnlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/msnlib.py b/msnlib.py
index cf1dce0..055d795 100644
--- a/msnlib.py
+++ b/msnlib.py
@@ -591,7 +591,7 @@ class msnd:
 			# for now we raise 911, which means authentication
 			# failed; but maybe we can get more detailed
 			# information
-			raise AuthError, [911, 'SSL Auth failed']
+			raise AuthError, (911, 'SSL Auth failed')
 
 		# and parse the headers to get the passport id
 		try:
-- 
1.6.2.2.646.gb214

