From 5017ca90ff241bc7030fe3b603c472f320ba33d0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 4 Oct 2024 16:16:16 -0700 Subject: [PATCH] refac --- backend/open_webui/apps/webui/routers/knowledge.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/open_webui/apps/webui/routers/knowledge.py b/backend/open_webui/apps/webui/routers/knowledge.py index 1628bb382..203ec95c7 100644 --- a/backend/open_webui/apps/webui/routers/knowledge.py +++ b/backend/open_webui/apps/webui/routers/knowledge.py @@ -159,10 +159,7 @@ def add_file_to_knowledge_by_id( try: process_file(ProcessFileForm(file_id=form_data.file_id, collection_name=id)) except Exception as e: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail=str(e), - ) + log.debug(e) if knowledge: data = knowledge.data or {}