mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
Treat AttributeError as an expected parse failure
This commit is contained in:
parent
5786658bac
commit
f072c7e22a
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))
|
links += list(parser_func(file))
|
||||||
if links:
|
if links:
|
||||||
break
|
break
|
||||||
except (ValueError, TypeError, IndexError, etree.ParseError):
|
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError):
|
||||||
# parser not supported on this file
|
# parser not supported on this file
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue