[PATCH 4/5] Don't crash on wireless connections created in Live CD desktop (#895736)

Radek Vykydal rvykydal at redhat.com
Wed Jan 30 15:11:42 UTC 2013


---
 pyanaconda/ui/gui/spokes/network.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 622e724..0a98666 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -1173,7 +1173,11 @@ def getKSNetworkData(device):
     if ifcfg_suffix:
         ifcfg_suffix = ifcfg_suffix.replace(' ', '_')
         device_cfg = NetworkDevice(netscriptsDir, ifcfg_suffix)
-        device_cfg.loadIfcfgFile()
+        try:
+            device_cfg.loadIfcfgFile()
+        except IOError as e:
+            log.debug("getKSNetworkData %s: %s" % (ifcfg_suffix, e))
+            return retval
         retval = kickstartNetworkData(ifcfg=device_cfg)
         if device.get_iface() in getActiveNetDevs():
             retval.activate = True
-- 
1.7.11.7



More information about the anaconda-patches mailing list