aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-06-16 21:55:12 +0000
committerRob Austein <sra@hactrn.net>2012-06-16 21:55:12 +0000
commit6f020d4066f9f2cbe31d47573468052923b5ab7f (patch)
treea870528bbd235f42a01e3f699cbdc607c9c9e59e
parentcf16e9178be5612200b007749efacdf6db481616 (diff)
Just ignore file:// URIs.
svn path=/trunk/; revision=4544
-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,