Call str() instead of unicode() on Exceptions to get the message

--HG--
branch : py3k
master
Dustin C. Hatch 2012-11-28 12:13:34 -06:00
parent d2705ad18e
commit a8a90294d2
1 changed files with 1 additions and 1 deletions

View File

@ -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