From 8a7c86588f91cca213822a92f473b5b5bfcb5438 Mon Sep 17 00:00:00 2001 From: mowshon Date: Wed, 18 Jan 2017 01:02:08 +0200 Subject: [PATCH] Crawler instance has no attribute 'pool' --- pysitemap/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysitemap/crawler.py b/pysitemap/crawler.py index 11b11a4..fb0b783 100644 --- a/pysitemap/crawler.py +++ b/pysitemap/crawler.py @@ -43,7 +43,7 @@ class Crawler: def crawl(self, echo=False, pool_size=1): self.echo = echo self.regex = re.compile(self.allowed_regex) - if gevent_installed and pool_size > 1: + if gevent_installed and pool_size >= 1: self.pool = pool.Pool(pool_size) self.pool.spawn(self.parse_gevent) self.pool.join()