From a8a90294d2fc74dd78dfab3bf4f48ea857f786bc Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 28 Nov 2012 12:13:34 -0600 Subject: [PATCH] Call str() instead of unicode() on Exceptions to get the message --HG-- branch : py3k --- src/milla/auth/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/milla/auth/__init__.py b/src/milla/auth/__init__.py index 8909fab..daeb535 100644 --- a/src/milla/auth/__init__.py +++ b/src/milla/auth/__init__.py @@ -37,7 +37,7 @@ class NotAuthorized(Exception): All other arguments and keywords are ignored. ''' - response = request.ResponseClass(unicode(self)) + response = request.ResponseClass(str(self)) response.status_int = 403 return response