From 53172ce8bc07993aaba731f9a4dbd8b364325040 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 24 Sep 2012 16:34:44 -0700 Subject: [PATCH] Define XHTML_RDF_DTD as None when we can't load the DTD --- htsworkflow/util/ethelp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/htsworkflow/util/ethelp.py b/htsworkflow/util/ethelp.py index e4fe897..7398963 100644 --- a/htsworkflow/util/ethelp.py +++ b/htsworkflow/util/ethelp.py @@ -8,6 +8,7 @@ import lxml.etree try: XHTML_RDF_DTD = lxml.etree.DTD(external_id='-//W3C//DTD XHTML+RDFa 1.0//EN') except lxml.etree.DTDParseError as e: + XHTML_RDF_DTD = None LOGGER.warn("Unable to load XHTML DTD %s" % (str(e),)) def indent(elem, level=0): -- 2.30.2