mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 14:10:20 +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))
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue