aboutsummaryrefslogtreecommitdiff
path: root/rcynic/rcynic-text.py
diff options
context:
space:
mode:
Diffstat (limited to 'rcynic/rcynic-text.py')
-rw-r--r--rcynic/rcynic-text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcynic/rcynic-text.py b/rcynic/rcynic-text.py
index f99c0792..09797cfa 100644
--- a/rcynic/rcynic-text.py
+++ b/rcynic/rcynic-text.py
@@ -83,7 +83,7 @@ class Session(object):
def show(self):
visible = [label for label in self.labels if label.visible]
- hostnames = sorted(self.hosts)
+ hostnames = sorted(hostname for hostname in self.hosts if hostname is not None)
hostwidth = max(len(hostname) for hostname in hostnames)
separator = "+-%s-+-%s-+" % (
"-" * hostwidth,