Call str() instead of unicode() on Exceptions to get the message
--HG-- branch : py3kmaster
parent
d2705ad18e
commit
a8a90294d2
|
@ -37,7 +37,7 @@ class NotAuthorized(Exception):
|
||||||
All other arguments and keywords are ignored.
|
All other arguments and keywords are ignored.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
response = request.ResponseClass(unicode(self))
|
response = request.ResponseClass(str(self))
|
||||||
response.status_int = 403
|
response.status_int = 403
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue