[Zope-CMF] Q. about isConstructionAllowed
Chris Withers
chrisw@nipltd.com
Tue, 09 Oct 2001 14:54:54 +0100
seb bacon wrote:
>
> OK, further investigation shows that ZopeSecurityPolicy sometimes
> raises Unauthorized exceptions, so I'll rephrase my question: is there
> any reason why _getFactoryMethod shouldn't read
>
> except Unauthorized:
>
> rather than
>
> except:
'cos that raise is prolly a:
raise 'Unauthorized'
...which can't be caught by anything other than a bare except :-(
Chris -- roll on class based exceptions everywhere...