diff --git a/uoftscrapers/scrapers/utils/scraper.py b/uoftscrapers/scrapers/utils/scraper.py index bc1981a..64e5bda 100644 --- a/uoftscrapers/scrapers/utils/scraper.py +++ b/uoftscrapers/scrapers/utils/scraper.py @@ -41,6 +41,7 @@ def get(url, params=None, cookies=None, headers=None, json=False, max_attempts=1 doc = r else: sleep(0.5) + attempts += 1 except (requests.exceptions.Timeout, requests.exceptions.ConnectionError): attempts += 1