Treat ParseError as an indication that a parser doesn’t apply to the input file

This commit is contained in:
Chris Dzombak 2018-03-14 17:38:39 -04:00
parent f49f1b5aa0
commit 0012742d04
No known key found for this signature in database
GPG key ID: 394E28F2E5BFE8EF

View file

@ -52,7 +52,7 @@ def parse_links(path):
links += list(parser_func(file)) links += list(parser_func(file))
if links: if links:
break break
except (ValueError, TypeError, IndexError): except (ValueError, TypeError, IndexError, etree.ParseError):
# parser not supported on this file # parser not supported on this file
pass pass