From 0012742d04d5ebb08aa77464e6ffae3be5499235 Mon Sep 17 00:00:00 2001 From: Chris Dzombak Date: Wed, 14 Mar 2018 17:38:39 -0400 Subject: [PATCH] =?UTF-8?q?Treat=20ParseError=20as=20an=20indication=20tha?= =?UTF-8?q?t=20a=20parser=20doesn=E2=80=99t=20apply=20to=20the=20input=20f?= =?UTF-8?q?ile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.py b/parse.py index 442efc2d..49fe201c 100644 --- a/parse.py +++ b/parse.py @@ -52,7 +52,7 @@ def parse_links(path): links += list(parser_func(file)) if links: break - except (ValueError, TypeError, IndexError): + except (ValueError, TypeError, IndexError, etree.ParseError): # parser not supported on this file pass