From 6f020d4066f9f2cbe31d47573468052923b5ab7f Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 16 Jun 2012 21:55:12 +0000 Subject: Just ignore file:// URIs. svn path=/trunk/; revision=4544 --- rcynic/rcynic-text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rcynic/rcynic-text.py') 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, -- cgit v1.2.3