Re: string exceptions

Eric Steele <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Feb 25, 2011, at 6:38 AM, Hanno Schlichting wrote:
> On Fri, Feb 25, 2011 at 12:32 PM, Charlie Clark
> <[email protected]> wrote:
>> Am 25.02.2011, 12:26 Uhr, schrieb Hanno Schlichting <[email protected]>:
>>> +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
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.