diff options
-rw-r--r-- | rcynic/rcynic-text.py | 2 |
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, |