From f6b6e8c278663f57ca46bb8268fc09dc908bcd9f Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sun, 10 Mar 2024 00:43:20 +0800 Subject: [PATCH] [feat] process error for send note --- app/boxes.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/boxes.py b/app/boxes.py index f40eb65..6a941d6 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -473,11 +473,15 @@ async def _send_create( if ap.VisibilityEnum.PUBLIC == outbox_object.visibility: ldsig.generate_signature(ap_object, k) - for r in recipients: - await post( - r, - ap_object, - ) + try: + for r in recipients: + await post( + r, + ap_object, + ) + except Exception as e: + logger.error(e) + return True