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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user