[PATCH] Use ExceptionInfo namedtuple when dumping anaconda (#982299)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Tue Jul 16 12:29:02 UTC 2013
Ack.
On Tue, Jul 16, 2013 at 10:36:51AM +0200, Vratislav Podzimek wrote:
> 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
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list