debug-viewer: Fix raising unhandled exception

Old code was uselessly complex
This commit is contained in:
Thibault Saunier 2018-04-19 14:26:23 -03:00
parent 52d1461bce
commit 48c7ccdc94

View file

@ -109,7 +109,7 @@ class MainLoopWrapper (ExceptionHandler):
if self.exc_info != (None,) * 3:
# Re-raise unhandled exception that occured while running the loop.
exc_type, exc_value, exc_tb = self.exc_info
raise exc_type(exc_value).with_traceback(exc_tb)
raise exc_value
class ExceptHookManagerClass (object):