From 33ba29ea90ecb63b1d5268e0cbd70f7808b3a852 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 6 Feb 2019 00:23:04 -0800 Subject: [PATCH] add optional parser error message --- archivebox/parse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivebox/parse.py b/archivebox/parse.py index ca7c9628..ae38d019 100644 --- a/archivebox/parse.py +++ b/archivebox/parse.py @@ -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()