[PATCH] Catch DeviceNotFoundError in cleardisks (#607661)

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

 



---
 iw/cleardisks_gui.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/iw/cleardisks_gui.py b/iw/cleardisks_gui.py
index dd720d4..926f613 100644
--- a/iw/cleardisks_gui.py
+++ b/iw/cleardisks_gui.py
@@ -166,9 +166,12 @@ class ClearDisksWindow (InstallWindow):
             if hasattr(d, "wwid"):
                 ident = d.wwid
             else:
-                ident = deviceNameToDiskByPath(d.name)
-                if ident.startswith("/dev/disk/by-path/"):
-                    ident = ident.replace("/dev/disk/by-path/", "")
+                try:
+                    ident = deviceNameToDiskByPath(d.name)
+                    if ident.startswith("/dev/disk/by-path/"):
+                        ident = ident.replace("/dev/disk/by-path/", "")
+                except DeviceNotFoundError:
+                    ident = d.name
 
             self.store.append(None, (d,
                                      leftVisible, True, False,
-- 
1.7.0.1

_______________________________________________
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