[Zope] Re: Exceptions and Python Scripts

Chris Withers chrisw@nipltd.com
Wed, 7 Feb 2001 23:51:25 -0000


> From: "Chris Withers" <chrisw@nipltd.com>
> > I'd like to do a try...except in a Python Script.
> >
> > Unfortunately, it doesn't look like I'm allowed to import the exceptions
> module:
>
> You shouldn't need to; most of the Exceptions are builtins.

Hmmm... Exceptions.Exception isn't :-S

Any idea how I'd go about catching an analysing string exceptions in Python
Scripts?

cheers,

Chris