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))
|
||||
if links:
|
||||
break
|
||||
except (ValueError, TypeError, IndexError, etree.ParseError):
|
||||
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError):
|
||||
# parser not supported on this file
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue