Include actor URI in another error

Fixes #331
This commit is contained in:
Andrew Godwin 2022-12-31 13:53:21 -07:00
parent 15159418df
commit ae12aadd38

View file

@ -718,7 +718,8 @@ class Identity(StatorModel):
return False return False
if response.status_code >= 400: if response.status_code >= 400:
raise ValueError( raise ValueError(
f"Client error fetching actor: {response.status_code}", response.content f"Client error fetching actor at {self.actor_uri}: {response.status_code}",
response.content,
) )
document = canonicalise(response.json(), include_security=True) document = canonicalise(response.json(), include_security=True)
if "type" not in document: if "type" not in document: