From ed91481440b3f5affa64f3044c8a8daffc6f5a48 Mon Sep 17 00:00:00 2001 From: SanjeevLakhwani Date: Tue, 5 Nov 2024 11:57:09 -0500 Subject: [PATCH] removed general exception handling --- transcriptomics_data_service/routers/ingest.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/transcriptomics_data_service/routers/ingest.py b/transcriptomics_data_service/routers/ingest.py index 0211f8f..193cc72 100644 --- a/transcriptomics_data_service/routers/ingest.py +++ b/transcriptomics_data_service/routers/ingest.py @@ -71,10 +71,6 @@ def _load_csv(file_bytes: bytes) -> pd.DataFrame: raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=f"Error parsing CSV: {e}") except ValueError as e: raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=f"Value error in CSV data: {e}") - except Exception as e: - raise HTTPException( - status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=f"Unexpected error while reading CSV: {e}" - ) @ingest_router.post("/normalize/{experiment_result_id}")