[Zope-dev] string exceptions

Eric Steele ems174 at psu.edu
Fri Feb 25 09:39:04 EST 2011


On Feb 25, 2011, at 6:38 AM, Hanno Schlichting wrote:
> On Fri, Feb 25, 2011 at 12:32 PM, Charlie Clark
> <charlie.clark at clark-consulting.eu> wrote:
>> Am 25.02.2011, 12:26 Uhr, schrieb Hanno Schlichting <hanno at hannosch.eu>:
>>> +1 - if you really feel like it you could backport to 2.12 branch as
>>> well (as it only supports Python 2.6 too).
>> 
>> - 1 against backporting unless you are experiencing the errors on a 2.12
>> based system.
> 
> Nobody experienced the problems yet, that's why it might be dead code.
> 
> But the issue affects Zope 2.12 as much as 2.13 - both require a
> minimum of Python 2.6, which doesn't support string exceptions
> anymore.
> 
> Hanno

FWIW, I'm seeing this sort of error in the Plone 4.0 nightlies with Zope 2.12.16.
> ...
>  File "/Users/ems174/projects/plone4dev/src/Products.CMFCore/Products/CMFCore/MemberDataTool.py", line 267, in getUser
>     raise 'MemberDataError', "Can't find user data"
> TypeError: exceptions must be old-style classes or derived from BaseException, not str

Eric


More information about the Zope-Dev mailing list