From 5d95fd44ac5d32e79b0e08b63b19a3d95444f620 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 4 Dec 2022 12:06:15 +0100 Subject: [PATCH] Fix webmention discovery --- app/utils/webmentions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/webmentions.py b/app/utils/webmentions.py index 772d10e..5332550 100644 --- a/app/utils/webmentions.py +++ b/app/utils/webmentions.py @@ -24,7 +24,7 @@ async def _discover_webmention_endoint(url: str) -> str | None: follow_redirects=True, ) resp.raise_for_status() - except (httpx.HTTPError, httpx.HTTPStatusError): + except Exception: logger.exception(f"Failed to discover webmention endpoint for {url}") return None