瀏覽代碼

Fix confusing error message when lxml is not installed

master
JustAnotherArchivist 3 年之前
父節點
當前提交
743e0582ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      warc-tiny

+ 1
- 1
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 = []


Loading…
取消
儲存