mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
Treat ParseError as an indication that a parser doesn’t apply to the input file
This commit is contained in:
parent
f49f1b5aa0
commit
0012742d04
1 changed files with 1 additions and 1 deletions
2
parse.py
2
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue