[PATCH rhel7-branch] network: don't traceback on invalid team options (#1114282)
Radek Vykydal
rvykydal at redhat.com
Tue Sep 2 07:08:04 UTC 2014
Resolves: rhbz#1114282
Log error message.
In the case teamd dies and team device is not created so we
are getting the UnknownDeviceError in nm.py.
---
pyanaconda/ui/gui/spokes/network.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 9163b6a..5a7a75c 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -657,6 +657,9 @@ class NetworkControlBox(GObject.GObject):
try:
con_uuid = nm.nm_device_setting_value(device.get_iface(), "connection", "uuid")
dev_cfg = self.dev_cfg(uuid=con_uuid)
+ except nm.UnknownDeviceError as e:
+ log.error(e)
+ return
except nm.SettingsNotFoundError:
# wireless devices
dev_cfg = None
--
1.9.3
More information about the anaconda-patches
mailing list