sofhiaazzhr commited on
Commit
2814813
·
1 Parent(s): ac3d8c1

[NOTICKET][document]: make a clean output to status error unsupported file type

Browse files
src/pipeline/document_pipeline/document_pipeline.py CHANGED
@@ -32,7 +32,7 @@ class DocumentPipeline:
32
  if file_type not in SUPPORTED_FILE_TYPES:
33
  raise HTTPException(
34
  status_code=400,
35
- detail=f"Unsupported file type. Supported: {SUPPORTED_FILE_TYPES}",
36
  )
37
 
38
  blob_name = await blob_storage.upload_file(content, file.filename, user_id)
 
32
  if file_type not in SUPPORTED_FILE_TYPES:
33
  raise HTTPException(
34
  status_code=400,
35
+ detail=f"Unsupported file type. Supported: {', '.join(SUPPORTED_FILE_TYPES)}",
36
  )
37
 
38
  blob_name = await blob_storage.upload_file(content, file.filename, user_id)