Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Jim
You're not *calling* FUNC1 here, you're just assigning a reference to it to the name 'a'. Try FUNC1() instead. Oh yeah. -- http://mail.python.org/mailman/listinfo/python-list

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Heiko Wundram
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-hann

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Jim
Issa-Ahmed SIDIBE wrote: I Have a function FUNC1 that is define in ModuleA. This function raise an exception EXCP1 (raise EXCP1), with EXCP1 a global variable in ModuleA. In ModuleB, I have some classes that call FUNC1. I would like to catch EXCP1 and make some processing. How can I do that. I trie

Re: Raise Error in a Module and Try/Except in a different Module

2005-04-04 Thread Simon Brunning
On 4 Apr 2005 03:11:23 -0700, Issa-Ahmed SIDIBE <[EMAIL PROTECTED]> wrote: > I Have a function FUNC1 that is define in ModuleA. This function raise > an exception EXCP1 (raise EXCP1), with EXCP1 a global variable in > ModuleA. > > In ModuleB, I have some classes that call FUNC1. I would like to ca