Browse Source

Merge pull request #3 from mowshon/patch-1

Crawler instance has no attribute 'pool'
pysitemap-python-2.7
Kamo Petrosyan 7 years ago
committed by GitHub
parent
commit
c5057f39ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pysitemap/crawler.py

+ 1
- 1
pysitemap/crawler.py View File

@ -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()


Loading…
Cancel
Save