durusmail: quixote-users: AccessError
AccessError
2002-03-07
2002-03-07
2002-03-07
2002-03-07
2002-03-07
AccessError
Quinn Dunkan
2002-03-07
> 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 i
> t.
>
> Huh?  The current code is:

Argh.  My own dumb fault.  I had an inheriting class that incorrectly set msg
to None, but was caught as an AccessError.

today is not my day


reply