[master][PATCH] Reraise the exception properly
Vratislav Podzimek
vpodzime at redhat.com
Mon Feb 17 06:23:06 UTC 2014
The raise statement takes 1 to 3 arguments, replacing the missing ones with
None. We have to pass it all three objects to get a proper exception with a
stack.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/threads.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/threads.py b/pyanaconda/threads.py
index 5b7a80b..b1b61f7 100644
--- a/pyanaconda/threads.py
+++ b/pyanaconda/threads.py
@@ -153,7 +153,7 @@ class ThreadManager(object):
exc_info = self._errors.pop(name)
if exc_info:
- raise exc_info
+ raise exc_info[0], exc_info[1], exc_info[2]
def in_main_thread(self):
"""Return True if it is run in the main thread."""
--
1.8.5.3
More information about the anaconda-patches
mailing list