Catching user defined exceptions from foreign modules
Martin v. Loewis
martin at v.loewis.de
Mon Sep 30 01:45:45 EDT 2002
Derek Basch <dbasch at yahoo.com> writes:
> So, this code works fine for me. However, I have 2
> much larger modules that have the same code structure
> but in these larger modules the test1 refuses to catch
> the raised TestError unless I change the except clause
> to:
>
> except test2.TestError:
> print 'fudge'
Perhaps it isn't test2.TestError that is raised, but just TestError,
as the module is used as the application program?
Regards,
Martin
More information about the Python-list
mailing list