[library-web] Try bypassing invalid xml files to avoid the entire build to break
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Try bypassing invalid xml files to avoid the entire build to break
- Date: Tue, 25 Feb 2020 16:10:36 +0000 (UTC)
commit 7feae0aa8318813e19049ef7cb36888e73380c9f
Author: Andrea Veri <averi redhat com>
Date: Tue Feb 25 17:10:25 2020 +0100
Try bypassing invalid xml files to avoid the entire build to break
src/modtypes/mallard.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 72092ba..0800706 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -37,7 +37,10 @@ import errors
from base import DocModule
def dup_node(e):
- return ET.fromstring(ET.tostring(e, encoding='utf-8'))
+ try:
+ return ET.fromstring(ET.tostring(e, encoding='utf-8'))
+ except xml.etree.ElementTree.ParseError as e:
+ print e
MAL_NS = 'http://projectmallard.org/1.0/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]