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

When XML parse error occures, print good message.

parent d6c34618
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