Commit 99bee71e authored by Sidnei da Silva's avatar Sidnei da Silva

- Fixed another check for new-style exceptions. Patch by David Glick from One/Northwest.

parent 79c2dbd4
...@@ -725,7 +725,7 @@ class HTTPResponse(BaseResponse): ...@@ -725,7 +725,7 @@ class HTTPResponse(BaseResponse):
t, v, tb = sys.exc_info() t, v, tb = sys.exc_info()
if t == 'Unauthorized' or t == Unauthorized or ( if t == 'Unauthorized' or t == Unauthorized or (
isinstance(t, types.ClassType) and issubclass(t, Unauthorized)): isinstance(t, (type, types.ClassType)) and issubclass(t, Unauthorized)):
t = 'Unauthorized' t = 'Unauthorized'
self._unauthorized() self._unauthorized()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment