This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author robey1
Recipients
Date 2004-12-17.20:46:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1179122

(I wish we could do this in email instead of cluttering up
an already-messy bug...)

Forget about throwing non-Exception-based objects: it's a
red herring.  The bug to focus on is the title: "exception
cannot be new-style class".

Bottom line:  This subclass of Exception can not be raised
in python 2.3:

class MyException (Exception, object): pass

pje's comment below from (2002-07-11 13:12) is a nice
summary of how to solve it.
History
Date User Action Args
2007-08-23 13:59:17adminlinkissue518846 messages
2007-08-23 13:59:17admincreate