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

@ -57,8 +57,7 @@ def check_page(
return (
None,
response,
f"We couldn't read that page (it returned {response.status}). "
"Check the address and try again.",
f"That page returned {response.status}. Check the address and try again.",
)
report = validate_bytes(
response.body, url=response.url, response=response, fetcher=fetcher
@ -93,7 +92,7 @@ def submit(
)
return Outcome(
message="This site was taken out of the directory. Write to the "
"address on the about page if that looks wrong."
"address on the home page if that looks wrong."
)
limited = db.rate_limited(connection, client=client, domain=domain, listing=listing)
@ -206,7 +205,7 @@ def recheck(
try:
response = fetcher.get(row["url"], headers=conditional or None)
except (UrlError, FetchError):
return _transient(connection, row, "We couldn't reach your site.")
return _transient(connection, row, "Your site didn't answer.")
elapsed = int((time.monotonic() - started) * 1000)
if response.status == NOT_MODIFIED:
@ -263,7 +262,7 @@ def _transient(connection: sqlite3.Connection, row: sqlite3.Row, note: str) -> s
db.remove(
connection,
row["id"],
f"{note} We tried for {db.TRANSIENT_LIMIT} days.",
f"{note} It stayed that way for {db.TRANSIENT_LIMIT} days.",
)
return "fail"
return "unreachable"