From 840d39ca35a65c05dcc1a50152c7323c8a2b9dbf Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 11 Jul 2024 09:07:42 +0100 Subject: [PATCH 1/2] Add more ways of saying not found --- check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check.py b/check.py index 82dce34..97ed0a6 100755 --- a/check.py +++ b/check.py @@ -87,11 +87,14 @@ not_here_list = [ "Test Page for the Apache HTTP Server", "Site not found · GitHub Pages", "504: Gateway time-out", + "502 Bad Gateway", "This page doesn't exist (404)", "Coming soon", "NOT_FOUND", "Resource Not Found", "Wikimedia Error", + "The page you requested could not be found", + "Ooops! Could Not Find It", ] From 164a93cd88ff7fb5c3a60d301a3599e6334d55b4 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 11 Jul 2024 09:07:59 +0100 Subject: [PATCH 2/2] Include conference year in email subject --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.py b/check.py index 97ed0a6..6b08255 100755 --- a/check.py +++ b/check.py @@ -157,7 +157,7 @@ def check_conference_web_site(name: str, src_url: str, year: int) -> bool: live, msg = check_conference(name, url := src_url.format(year=year)) if live: body = f"{name}\n{url}\nWeb page title: {msg}" - send_mail(f"Conference site live: {name}", body) + send_mail(f"Conference site live: {name} - {year}", body) return live