mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-24 15:13:03 +02:00
Treat AttributeError as an expected parse failure
This commit is contained in:
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user