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

Merge pull request #75 from cdzombak/attribute-error

Treat AttributeError as an acceptable parse failure
This commit is contained in:
Nick Sweeting
2018-03-19 13:23:55 -07:00
committed by GitHub

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, etree.ParseError): except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError):
# parser not supported on this file # parser not supported on this file
pass pass