1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12:00

add optional parser error message

This commit is contained in:
Nick Sweeting 2019-02-06 00:23:04 -08:00
parent 5441abdcc2
commit 33ba29ea90

View file

@ -67,8 +67,9 @@ def parse_links(path):
links += list(parser_func(file))
if links:
break
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError):
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError) as err:
# parser not supported on this file
# print('[!] Parser {} failed: {} {}'.format(parser_name, err.__class__.__name__, err))
pass
print()