diff options
author | Mike Fulbright <msf@redhat.com> | 2003-07-11 01:29:22 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-07-11 01:29:22 +0000 |
commit | aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5 (patch) | |
tree | 7f93ab0180033dbfc99fd15f0db1414b4e0524e6 | |
parent | 38653d1980bb5166ed0f0716a89e4bea1123935d (diff) | |
download | anaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.tar.gz anaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.tar.xz anaconda-aaa9579aac78c44a9a61cb177aeaf4dc05ae83c5.zip |
handle empty descriptions better
-rw-r--r-- | textw/network_text.py | 3 |
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) |