From 743e0582baaf61e5c365e1159ec6395f5190b44f Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Tue, 9 Feb 2021 05:06:38 +0000 Subject: [PATCH] Fix confusing error message when lxml is not installed --- warc-tiny | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warc-tiny b/warc-tiny index f5ccf75..b26ac27 100755 --- a/warc-tiny +++ b/warc-tiny @@ -445,7 +445,7 @@ class ScrapeMode(ProcessMode): def __init__(self, urlsOnly): self._urlsOnly = urlsOnly - assert wpull is not None, 'Scrape mode requires wpull' + assert wpull is not None, 'Scrape mode requires wpull and lxml' htmlParser = wpull.document.htmlparse.lxml_.HTMLParser() elementWalker = wpull.scraper.html.ElementWalker() scrapers = []