Exception raised in wrong thread?
I have problem and I'm looking for help. Probably there is some quite
easy solution, but I can't see it.
I'm trying to perform some action that have to be timeout safe. So here
is the structure of my program:
timer = Timer(1, TimeoutHandler)
active = Actice()
The output is:
My question is, why exception is not raised correctly? Could be the
reason that (probably) timer is another thread and there is no
exception in the main thread? How to solve this problem? [My timeout
should be smaller than one second so I can't use signal.alarm()]
Thanks for your reply,
Re: Exception raised in wrong thread?
|All times are GMT. The time now is 10:50 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.