diff --git a/projects/lxml/fuzz_html_parse.py b/projects/lxml/fuzz_html_parse.py
index cb9e492fa..c95597525 100644
--- a/projects/lxml/fuzz_html_parse.py
+++ b/projects/lxml/fuzz_html_parse.py
@@ -26,7 +26,7 @@ def TestOneInput(data):
root = et.HTML(data)
if root != None:
et.tostring(root)
- except et.XMLSyntaxError:
+ except et.LxmlError:
None
diff --git a/projects/lxml/fuzz_sax.py b/projects/lxml/fuzz_sax.py
index 1eeefd29c..e5652fd35 100644
--- a/projects/lxml/fuzz_sax.py
+++ b/projects/lxml/fuzz_sax.py
@@ -30,7 +30,7 @@ def TestOneInput(data):
handler = sax.ElementTreeContentHandler()
sax.ElementTreeProducer(parsed, handler).saxify()
- except et.XMLSyntaxError:
+ except et.LxmlError:
None
def main():