On 07 March 2002, Quinn Dunkan said:
> I propose that errors.AccessError.__init__ be changed to the following:
>
> def __init__ (self, msg=''):
> self.msg = msg or "Access denied"
>
> When you have 'msg=None', and you do 'raise AccessError', you wind up with
> an exception whose __str__ returns None and crashes when you try to print it.
Huh? The current code is:
def __init__ (self, msg=None):
self.msg = msg or "Access denied"
and, judging by the CVS log, it has been that way since Time
Immemorial. And it works just fine:
>>> from quixote.errors import *
>>> raise AccessError
Traceback (most recent call last):
File "", line 1, in ?
quixote.errors.AccessError: Access denied
Can you demonstrate how this crashes for you?
Greg
--
Greg Ward - software developer gward@mems-exchange.org
MEMS Exchange http://www.mems-exchange.org