1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 394E28F2E5BFE8EF

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