How to get a raised exception from other thread

dcrespo dcrespo at gmail.com
Wed Oct 19 09:10:18 EDT 2005


> Now that may not be perfect, since I'm not familiar with the TCPServer()
> call.  I've sort of assumed it does something quickly and returns, or
> raises an exception if the input is bad.  If it doesn't actually return
> if it starts successfully, you would need a little different approach.
> Probably adding a simple timeout to the self.startEvent.wait() call
> would work.

It's perfect! Thank you very much.

After the .start() call in the main thread, it just waits until was a
succesfull thread start. It's just perfect.

One more thing, I would like to catch the description string of the
error, so I can show it to the user in a Message Box. How can I do that
in the main threa, once that I allready catched the exception?

Thank you so much




More information about the Python-list mailing list