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

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



Ack.

On 02/10/2010 08:24 PM, David Lehman wrote:
---
  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()


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