docs: take the first person out of the checker's messages

This commit is contained in:
randogoth 2026-10-11 15:41:36 +03:00
parent 39269ca61b
commit 945c8eb6b6
5 changed files with 12 additions and 13 deletions

View file

@ -25,7 +25,7 @@ CSS_CAP = 256 * 1024
MAX_REDIRECTS = 3
MAX_URL_LENGTH = 2048
USER_AGENT = "mews.page checker (+https://mews.page/about)"
USER_AGENT = "mews.page checker (+https://mews.page/)"
_PSL = PublicSuffixList()
@ -247,11 +247,11 @@ def resolve(url: str, *, allow_loopback: bool = False) -> str:
infos = socket.getaddrinfo(host, port, type=socket.SOCK_STREAM)
except socket.gaierror as error:
raise FetchError(
"We couldn't find that domain name. Check the address and try again."
"That domain name couldn't be found. Check the address and try again."
) from error
addresses = [info[4][0] for info in infos]
if not addresses:
raise FetchError("We couldn't find that domain name.")
raise FetchError("That domain name couldn't be found.")
for address in addresses:
vet_address(address, allow_loopback=allow_loopback)
return addresses[0]
@ -356,7 +356,7 @@ class Fetcher:
except httpx.TimeoutException as error:
raise FetchError("That page took too long to answer.") from error
except httpx.HTTPError as error:
raise FetchError("We couldn't connect to that site.") from error
raise FetchError("That site couldn't be reached.") from error
return Fetched(url, response.status_code, response.headers, body, truncated)
def _read(self, response: httpx.Response, cap: int) -> tuple[bytes, bool]: