Ack. But return None (the value of retval when in the exception handler) would probably be more readable.
----- Original Message -----
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
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches