aboutsummaryrefslogtreecommitdiff
path: root/rcynic/rcynic-html.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-11-06 14:39:02 +0000
committerRob Austein <sra@hactrn.net>2012-11-06 14:39:02 +0000
commit14709cbece2f98f4a5d3561d333262839c45df19 (patch)
tree45e57ebba89d0db13a19b523cab4eff7fcba9182 /rcynic/rcynic-html.py
parent3fd231e69d1b8d9154c6d9b1f9211521c93d9108 (diff)
Use "[None]" as hostname for URIs with null hostname. At present this
only happens when rcynic reports a problem with a trust anchor or TAL. svn path=/trunk/; revision=4802
Diffstat (limited to 'rcynic/rcynic-html.py')
-rw-r--r--rcynic/rcynic-html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcynic/rcynic-html.py b/rcynic/rcynic-html.py
index c165d652..d86c84f3 100644
--- a/rcynic/rcynic-html.py
+++ b/rcynic/rcynic-html.py
@@ -137,7 +137,7 @@ class Validation_Status(object):
self.uri = elt.text.strip()
self.timestamp = elt.get("timestamp")
self.generation = elt.get("generation")
- self.hostname = urlparse.urlparse(self.uri).hostname or None
+ self.hostname = urlparse.urlparse(self.uri).hostname or "[None]"
self.fn2 = os.path.splitext(self.uri)[1] or None if self.generation else None
self.label = label_map[elt.get("status")]