Explorar el Código

Fix confusing error message when lxml is not installed

master
JustAnotherArchivist hace 3 años
padre
commit
743e0582ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      warc-tiny

+ 1
- 1
warc-tiny Ver fichero

@@ -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 = []


Cargando…
Cancelar
Guardar