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)