summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-07-11 01:29:22 +0000
committerMike Fulbright <msf@redhat.com>2003-07-11 01:29:22 +0000
commitaaa9579aac78c44a9a61cb177aeaf4dc05ae83c5 (patch)
tree7f93ab0180033dbfc99fd15f0db1414b4e0524e6 /textw
parent38653d1980bb5166ed0f0716a89e4bea1123935d (diff)
downloadanaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.tar.gz
anaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.tar.xz
anaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.zip
handle empty descriptions better
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 8e84b2e79..0f3ec8a92 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -72,9 +72,10 @@ class NetworkDeviceWindow:
options.append(newopt)
descr = dev.get("desc")
- if descr is not None:
+ if descr is not None and len(descr) > 0:
toprows = 2
else:
+ descr = None
toprows = 1
topgrid = Grid(1, toprows)