summaryrefslogtreecommitdiffstats
path: root/iw/network_gui.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2007-09-04 18:06:53 +0000
committerDavid Cantrell <dcantrell@redhat.com>2007-09-04 18:06:53 +0000
commitbb6c8d109787511183f7d24c5d563752a27b23d8 (patch)
treec83c1d68cb5f0cff383506fdb8a780bcaf48ac8e /iw/network_gui.py
parent68f837317eb7ca1f71687a75380f8f0e9eba6c76 (diff)
downloadanaconda-bb6c8d109787511183f7d24c5d563752a27b23d8.tar.gz
anaconda-bb6c8d109787511183f7d24c5d563752a27b23d8.tar.xz
anaconda-bb6c8d109787511183f7d24c5d563752a27b23d8.zip
* iw/network_gui.py (NetworkWindow.setupDevices): Do not assume we
have HWADDR or DESC when generating tooltip.
Diffstat (limited to 'iw/network_gui.py')
-rw-r--r--iw/network_gui.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 80e05cf41..19f76465d 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -382,7 +382,11 @@ class NetworkWindow(InstallWindow):
ipv4 = self.createIPV4Repr(self.devices[device])
ipv6 = self.createIPV6Repr(self.devices[device])
- devdesc = "%s - %s" % (self.devices[device].info["HWADDR"],self.devices[device].info["DESC"])
+ devdesc = None
+ if self.devices[device].info.has_key('HWADDR') and \
+ self.devices[device].info.has_key('DESC'):
+ devdesc = "%s - %s" % (self.devices[device].info["HWADDR"],
+ self.devices[device].info["DESC"])
self.ethdevices.append_row((device, ipv4, ipv6), active, tooltipText=devdesc)
num += 1