1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-24 15:13:03 +02:00

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

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