1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-23 22:53:00 +02:00

Treat AttributeError as an expected parse failure

This commit is contained in:
Chris Dzombak
2018-03-19 10:54:04 -04:00
parent 5786658bac
commit f072c7e22a

View File

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