Преглед изворни кода

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…
Откажи
Сачувај