diff --git a/src/main.py b/src/main.py index 65cba9a..e1ca3fd 100644 --- a/src/main.py +++ b/src/main.py @@ -124,6 +124,7 @@ async def upload_document( logging.info(f"Document {doc_id} upload initiated successfully") return {"document_id": doc_id, "message": "Document uploaded successfully, processing in background"} + except Exception as e: error_msg = f"Error processing document: {str(e)}" logging.error(error_msg) diff --git a/src/services/document_processor.py b/src/services/document_processor.py index 3e283be..8d52900 100644 --- a/src/services/document_processor.py +++ b/src/services/document_processor.py @@ -295,4 +295,4 @@ class DocumentProcessor: except Exception as e: logging.error(f"Error reranking issues: {str(e)}") # If reranking fails, return the original order - return issues_and_recommendations + return issues_and_recommendations \ No newline at end of file