From 82ee06efed1168f932896945d6eb33f25bf1d2b8 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Mon, 23 Dec 2024 20:53:22 +0800 Subject: [PATCH] fix: add FileNotFoundError to ignored errors in Sentry integration Signed-off-by: -LAN- --- api/extensions/ext_sentry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/extensions/ext_sentry.py b/api/extensions/ext_sentry.py index 8016356a3e2961..3ec8ae6e1dc14e 100644 --- a/api/extensions/ext_sentry.py +++ b/api/extensions/ext_sentry.py @@ -27,6 +27,7 @@ def before_send(event, hint): ignore_errors=[ HTTPException, ValueError, + FileNotFoundError, openai.APIStatusError, InvokeRateLimitError, parse_error.defaultErrorResponse,