Skip to content
Snippets Groups Projects
Commit a2d45737 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Merge pull request #1568 from endJunction/ImprovingDocsParsingScripts

When XML parse error occures, print good message.
parents 2d90d7c4 d87a0482
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,12 @@ for (dirpath, dirnames, filenames) in os.walk(datadir, topdown=False):
<tt>
""" % (pagename, fn))
xmlroot = ET.parse(filepath).getroot()
try:
xmlroot = ET.parse(filepath).getroot()
except ET.ParseError as err:
print("ParseError occured in file :", filepath)
print(err)
raise
print_tags(xmlroot, 0, "prj", fh, None, 0, relfilepath)
fh.write(r"""</tt>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment