[PATCH] Fix a question in a storage init, when no dispatcher is present (#805910)

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

 



---
 storage/__init__.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 3ad9286..c004862 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -104,14 +104,14 @@ def storageInitialize(anaconda):
 
     if not storage.disks:
         custom_buttons=[_("_Try again"), _("_Exit installer")]
-        if anaconda.dispatch.canGoBack():
+        if anaconda.dispatch and anaconda.dispatch.canGoBack():
             custom_buttons = [_("_Back"), _("_Exit installer")]
         rc = anaconda.intf.messageWindow(_("No disks found"),
                                          _("No usable disks have been found."),
                                          type="custom",
                                          custom_buttons=custom_buttons, default=0)
         if rc == 0:
-            if anaconda.dispatch.canGoBack():
+            if anaconda.dispatch and anaconda.dispatch.canGoBack():
                 return DISPATCH_BACK
             else:
                 return storageInitialize(anaconda)
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux