summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifest_xml.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index cdee87a6..bf981f03 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -310,7 +310,11 @@ class XmlManifest(object):
310 self._loaded = True 310 self._loaded = True
311 311
312 def _ParseManifestXml(self, path, include_root): 312 def _ParseManifestXml(self, path, include_root):
313 root = xml.dom.minidom.parse(path) 313 try:
314 root = xml.dom.minidom.parse(path)
315 except (OSError, xml.parsers.expat.ExpatError), e:
316 raise ManifestParseError("error parsing manifest %s: %s" % (path, e))
317
314 if not root or not root.childNodes: 318 if not root or not root.childNodes:
315 raise ManifestParseError("no root node in %s" % (path,)) 319 raise ManifestParseError("no root node in %s" % (path,))
316 320