1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12: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
commit 1ea695d7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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