From 8ac85ea0bd6e2efcb6a1cd03fb31fde0a091ea90 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Sat, 22 May 2021 23:37:34 +0200 Subject: [PATCH] Fix a few typos in HttpCrawler --- PFERD/http_crawler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PFERD/http_crawler.py b/PFERD/http_crawler.py index 41bf612..b9cfeea 100644 --- a/PFERD/http_crawler.py +++ b/PFERD/http_crawler.py @@ -37,10 +37,10 @@ class HttpCrawler(Crawler): async def authenticate(self, current_id: int) -> None: async with self._authentication_lock: - # Another thread successfully called authenticate in between - # We do not want to perform auth again, so return here. We can - # assume auth suceeded as authenticate will throw an error if - # it failed. + # Another thread successfully called authenticate in-between + # We do not want to perform auth again, so we return here. We can + # assume the other thread suceeded as authenticate will throw an error + # if it failed and aborts the crawl process. if current_id != self._authentication_id: return await self._authenticate() @@ -52,7 +52,7 @@ class HttpCrawler(Crawler): async def _authenticate(self) -> None: """ Performs authentication. This method must only return normally if authentication suceeded. - In all other cases it mus either retry internally or throw a terminal exception. + In all other cases it must either retry internally or throw a terminal exception. """ raise RuntimeError("_authenticate() was called but crawler doesn't provide an implementation")