From 32e3a6dbf7ff9a81a4c4526c00000f7c9206bc82 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 19 Aug 2022 09:17:06 +0200 Subject: [PATCH] Don't fail to accept follow when the oubox cannot be processed --- app/boxes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index e085932..0277f19 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1891,7 +1891,10 @@ async def save_to_inbox( db_session.add(following) # Pre-fetch the latest activities - await _prefetch_actor_outbox(db_session, actor) + try: + await _prefetch_actor_outbox(db_session, actor) + except Exception: + logger.exception(f"Failed to prefetch outbox for {actor.ap_id}") elif activity_ro.ap_type == "Reject": maybe_following = ( await db_session.scalars(