How to get a raised exception from other thread

dcrespo dcrespo at gmail.com
Mon Oct 17 13:52:01 EDT 2005


Hi Peter. Sorry for my delay. I wasn't in home the weekend.

> Define what "get" means for your purposes.  It appears that you mean you
> want to catch the exception, but in the thread which launched the other
> thread in the first place.  If that's true, please show where you would
> expect to catch this exception, given that when you start the thread,
> the main thread continues running and might even finish before the other
> thread finishes.

In my above example, I want to catch in ProgramA the raised exception
in ProgramB. Please, look at my example one more time.

Thanks.




More information about the Python-list mailing list