mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-29 23:50:22 +00:00
add optional parser error message
This commit is contained in:
parent
5441abdcc2
commit
33ba29ea90
1 changed files with 2 additions and 1 deletions
|
@ -67,8 +67,9 @@ def parse_links(path):
|
||||||
links += list(parser_func(file))
|
links += list(parser_func(file))
|
||||||
if links:
|
if links:
|
||||||
break
|
break
|
||||||
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError):
|
except (ValueError, TypeError, IndexError, AttributeError, etree.ParseError) as err:
|
||||||
# parser not supported on this file
|
# parser not supported on this file
|
||||||
|
# print('[!] Parser {} failed: {} {}'.format(parser_name, err.__class__.__name__, err))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in a new issue