----- Original Message -----
From: "Vratislav Podzimek" <vpodzime(a)redhat.com>
To: anaconda-patches(a)lists.fedorahosted.org
Sent: Monday, December 9, 2013 8:49:32 AM
Subject: [master][PATCH] Don't rely on Gtk being importable for exception handling
The anaconda-core package doesn't require Gtk to be installed. If it fails to
be
imported, it means for us the same as if fails to be initialized.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/exception.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index e61cce0..f97407a 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -116,7 +116,7 @@ class AnacondaExceptionHandler(ExceptionHandler):
super(AnacondaExceptionHandler, self).handleException(
dump_info)
- except RuntimeError:
+ except (RuntimeError, ImportError):
log.debug("Gtk cannot be initialized")
# X not running (Gtk cannot be initialized)
if threadMgr.in_main_thread():
--
1.8.4.2
Ack.
- mulhern
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches