From: Diane Trout Date: Mon, 24 Sep 2012 23:34:44 +0000 (-0700) Subject: Define XHTML_RDF_DTD as None when we can't load the DTD X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=53172ce8bc07993aaba731f9a4dbd8b364325040 Define XHTML_RDF_DTD as None when we can't load the DTD --- 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):