Fix actor lookup

This commit is contained in:
Thomas Sileo 2022-08-15 22:22:15 +02:00
parent d1b4bd0181
commit 4ae198d074
2 changed files with 3 additions and 4 deletions

View file

@ -103,7 +103,7 @@ async def get_lookup(
await fetch_actor(
db_session, ap_object.ap_id, save_if_not_found=False
)
except ap.NotAnObjectError:
except ap.ObjectNotFoundError:
pass
else:
return RedirectResponse(