mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
f3ee07a8a2
commit
5017ca90ff
1 changed files with 1 additions and 4 deletions
|
|
@ -159,10 +159,7 @@ def add_file_to_knowledge_by_id(
|
||||||
try:
|
try:
|
||||||
process_file(ProcessFileForm(file_id=form_data.file_id, collection_name=id))
|
process_file(ProcessFileForm(file_id=form_data.file_id, collection_name=id))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise HTTPException(
|
log.debug(e)
|
||||||
status_code=status.HTTP_400_BAD_REQUEST,
|
|
||||||
detail=str(e),
|
|
||||||
)
|
|
||||||
|
|
||||||
if knowledge:
|
if knowledge:
|
||||||
data = knowledge.data or {}
|
data = knowledge.data or {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue