1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-21 13:52:30 +02: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()