[Twisted-Python] twisted.web.error.Error & BaseException.message deprecation

Jason J. W. Williams jasonjwwilliams at gmail.com
Fri Mar 11 12:52:05 EST 2011

Hi Glyph,

I re-opened 4456 and attached a patch. I think that's this issue. The only other one I found in the tickets was for Conch and that one was marked fixed. 


Sent via iPhone

Is your e-mail Premiere?

On Mar 11, 2011, at 9:51, Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:

> On Mar 11, 2011, at 2:25 AM, Jason J. W. Williams wrote:
>> Setting it as a class level attribute seems to suppress it:
>>>>> class TestError(Exception):
>> ...     message = ""
>> ...
>> ...     def __init__(self, msg):
>> ...        self.message = msg
>> Since it's a string and passed by value I think this would work. I'll
>> open up a ticket if one's not already.
> Sounds good.  I can't find one, but there have been other tickets with a similar purpose ('message' attributes on other exceptions).
> If you have time after fixing this issue, it would be nice if you could double-check that there aren't any more of these lurking around :).

More information about the Twisted-Python mailing list