[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Only show the error message if there was an error.



---
 packages.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages.py b/packages.py
index 4ae9f4d..ffe1cb6 100644
--- a/packages.py
+++ b/packages.py
@@ -124,14 +124,15 @@ def turnOnFilesystems(anaconda):
     except Exception as e:
         raise
 
-    rc = anaconda.intf.detailedMessageWindow(title, message, details,
+    if title:
+        rc = anaconda.intf.detailedMessageWindow(title, message, details,
                         type = "custom",
                         custom_buttons = [_("_File Bug"), _("_Exit installer")])
 
-    if rc == 0:
-        raise
-    elif rc == 1:
-        sys.exit(1)
+        if rc == 0:
+            raise
+        elif rc == 1:
+            sys.exit(1)
 
     if not anaconda.upgrade:
         anaconda.storage.turnOnSwap()
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]