소스 검색

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- 10 달 전
부모
커밋
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,