303 try: |
303 try: |
304 run() |
304 run() |
305 except Exception: |
305 except Exception: |
306 excinfo = sys.exc_info() |
306 excinfo = sys.exc_info() |
307 newThread.user_exception(excinfo, True) |
307 newThread.user_exception(excinfo, True) |
|
308 finally: |
|
309 sys.settrace(None) |
308 |
310 |
309 class ThreadWrapper(module.Thread): |
311 class ThreadWrapper(module.Thread): |
310 """ Wrapper class for threading.Thread. """ |
312 """ Wrapper class for threading.Thread. """ |
311 |
313 |
312 def __init__(self, *args, **kwargs): |
314 def __init__(self, *args, **kwargs): |
355 # *.QThreads doesn't like SystemExit |
357 # *.QThreads doesn't like SystemExit |
356 pass |
358 pass |
357 except Exception: |
359 except Exception: |
358 excinfo = sys.exc_info() |
360 excinfo = sys.exc_info() |
359 newThread.user_exception(excinfo, True) |
361 newThread.user_exception(excinfo, True) |
|
362 finally: |
|
363 sys.settrace(None) |
360 |
364 |
361 class QThreadWrapper(module.QThread): |
365 class QThreadWrapper(module.QThread): |
362 """ Wrapper class for *.QThread. """ |
366 """ Wrapper class for *.QThread. """ |
363 |
367 |
364 def __init__(self, *args, **kwargs): |
368 def __init__(self, *args, **kwargs): |