Ignore 406 response for webfinger and nodeinfo (#356)

This commit is contained in:
Michael Manfre 2023-01-04 23:45:29 -05:00 committed by GitHub
parent 1768781fed
commit f1fa4aa1e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class Domain(StatorModel):
if (
response
and response.status_code < 500
and response.status_code not in [401, 403, 404, 410]
and response.status_code not in [401, 403, 404, 406, 410]
):
raise ValueError(
f"Client error fetching nodeinfo: domain={self.domain}, code={response.status_code}",

View file

@ -658,7 +658,7 @@ class Identity(StatorModel):
if (
response
and response.status_code < 500
and response.status_code not in [401, 403, 404, 410]
and response.status_code not in [401, 403, 404, 406, 410]
):
raise ValueError(
f"Client error fetching webfinger: {response.status_code}",