瀏覽代碼

fix: add FileNotFoundError to ignored errors in Sentry integration (#12023)

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- 4 月之前
父節點
當前提交
1c80941c69
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/extensions/ext_sentry.py

+ 1 - 0
api/extensions/ext_sentry.py

@@ -27,6 +27,7 @@ def init_app(app: DifyApp):
             ignore_errors=[
                 HTTPException,
                 ValueError,
+                FileNotFoundError,
                 openai.APIStatusError,
                 InvokeRateLimitError,
                 parse_error.defaultErrorResponse,