From 86cab99e7a1c9e8ec4096cb317fcdcd98077a70b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 20 Jul 2015 07:18:24 -0400 Subject: [PATCH] docbackend: protect from sytledtexttag with value is None --- gramps/gen/plug/docbackend/docbackend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/plug/docbackend/docbackend.py b/gramps/gen/plug/docbackend/docbackend.py index 4c6d0c6e5..f10a4068f 100644 --- a/gramps/gen/plug/docbackend/docbackend.py +++ b/gramps/gen/plug/docbackend/docbackend.py @@ -222,6 +222,8 @@ class DocBackend(object): return self.format_link(s_tag.value) typeval = int(s_tag.name) s_tagvalue = s_tag.value + if s_tagvalue is None: + return None tag_name = None if tagtype.STYLE_TYPE[typeval] == bool: return self.STYLETAG_MARKUP[self.STYLETYPE_MAP[typeval]]