Re: Error when using Custom Exception defined in a different python module.

2007-05-06 Thread pillappa
On May 6, 11:23 am, Rob Williscroft <[EMAIL PROTECTED]> wrote: > wrote innews:[EMAIL PROTECTED] > comp.lang.python: > > > Hi, > > > I am hitting this error consistently and don't know why it's > > happening. I would like to define all exceptions for my project in one > > file and use them across t

Error when using Custom Exception defined in a different python module.

2007-05-06 Thread pillappa
Hi, I am hitting this error consistently and don't know why it's happening. I would like to define all exceptions for my project in one file and use them across the project. Here's a sample - exceptions.py - class MyException(StandardError): def __init__(self, error): self.myerror =