[PATCH 2/2 rhel7-branch] network: catch another race when calling dbus methods on invalid devices
Radek Vykydal
rvykydal at redhat.com
Thu Jun 25 14:12:53 UTC 2015
Related: rhbz#1179276
---
pyanaconda/ui/gui/spokes/network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 5a84996..a8660c8 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -799,7 +799,7 @@ class NetworkControlBox(GObject.GObject):
try:
ipv4cfg = nm.nm_device_ip_config(dev_cfg.device.get_iface(), version=4)
ipv6cfg = nm.nm_device_ip_config(dev_cfg.device.get_iface(), version=6)
- except nm.UnknownDeviceError:
+ except (nm.UnknownDeviceError, nm.UnknownMethodGetError):
ipv4cfg = ipv6cfg = None
else:
ipv4cfg = ipv6cfg = None
--
1.9.3
More information about the anaconda-patches
mailing list