projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Define XHTML_RDF_DTD as None when we can't load the DTD
[htsworkflow.git]
/
htsworkflow
/
util
/
ethelp.py
diff --git
a/htsworkflow/util/ethelp.py
b/htsworkflow/util/ethelp.py
index e4fe897342acfe656d63c3155a51c715610a9dca..7398963999bfa470e7ffb9ee17822a4a8bc7ddd4 100644
(file)
--- 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):