[PATCH] Use ExceptionInfo namedtuple when dumping anaconda (#982299)
Vratislav Podzimek
vpodzime at redhat.com
Tue Jul 16 08:36:51 UTC 2013
Otherwise a traceback appears when anaconda recieves SIGUSR2.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/__init__.py b/pyanaconda/__init__.py
index f5a81a5..9b58f92 100644
--- a/pyanaconda/__init__.py
+++ b/pyanaconda/__init__.py
@@ -166,6 +166,7 @@ class Anaconda(object):
return self._storage
def dumpState(self):
+ from meh import ExceptionInfo
from meh.dump import ReverseExceptionDump
from inspect import stack as _stack
from traceback import format_stack
@@ -173,7 +174,8 @@ class Anaconda(object):
# Skip the frames for dumpState and the signal handler.
stack = _stack()[2:]
stack.reverse()
- exn = ReverseExceptionDump((None, None, stack), self.mehConfig)
+ exn = ReverseExceptionDump(ExceptionInfo(None, None, stack),
+ self.mehConfig)
# gather up info on the running threads
threads = "\nThreads\n-------\n"
--
1.7.11.7
More information about the anaconda-patches
mailing list