From a7bbbb5663050abe6cdcec4de7a17009d02bd9e6 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 24 Dec 2022 10:56:22 -0700 Subject: [PATCH] Also catch host-meta parse errors --- users/models/identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models/identity.py b/users/models/identity.py index 339fd71..4b7908a 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -583,7 +583,7 @@ class Identity(StatorModel): ) if template: webfinger_url = template - except httpx.RequestError: + except (httpx.RequestError, etree.ParseError): pass try: