Raise Error in a Module and Try/Except in a different Module
Heiko Wundram
modelnine at ceosg.de
Mon Apr 4 06:34:14 EDT 2005
Am Montag, 4. April 2005 12:11 schrieb Issa-Ahmed SIDIBE:
Try:
> import ModuleA
> ...
> class():
> ...
> try: a = ModuleA.FUNC1()
^^ <-- Actually call the method.
> except ModuleA.EXCP1: print 'catch'
HTH!
--
--- Heiko.
see you at: http://www.stud.mh-hannover.de/~hwundram/wordpress/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050404/6a472ead/attachment.sig>
More information about the Python-list
mailing list