Commit 2d4af144 authored by Tres Seaver's avatar Tres Seaver

Suppress 2.6 deprecation warnings about 'message' attribute in exceptions.

parent 6c2094b5
......@@ -23,6 +23,11 @@ class Unauthorized(Exception):
"""
implements(IUnauthorized)
def _get_message(self):
return self._message
message = property(_get_message,)
def __init__(self, message=None, value=None, needed=None, name=None, **kw):
"""Possible signatures:
......@@ -44,7 +49,7 @@ class Unauthorized(Exception):
message=None
self.name=name
self.message=message
self._message=message
self.value=value
if kw:
......
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