From 77ca7ebcb930122481b757e7068dc988cefe77ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Thu, 22 Feb 2018 15:35:46 +0100 Subject: [PATCH] Silly me. --- crawl/crawl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl/crawl.py b/crawl/crawl.py index 132acee..ee32971 100644 --- a/crawl/crawl.py +++ b/crawl/crawl.py @@ -185,7 +185,7 @@ async def async_print(url): async def async_crawler(url): queue = [url] crawled = [] - while (not queue) or (len(crawled) < HARD_LIMIT): + while queue or (len(crawled) < HARD_LIMIT): async with aiohttp.ClientSession() as session: try: url = queue.pop(0)