From 1c032ffe0049ba5556a6614197b0297ae7080a9b Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Fri, 10 Apr 2026 13:31:37 +0700 Subject: [PATCH] refactor: suppress ClamAV connection errors and comment out exception handling blocks in service layer --- src/aeros_project/service.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/aeros_project/service.py b/src/aeros_project/service.py index 3d338e6..48d2ccf 100644 --- a/src/aeros_project/service.py +++ b/src/aeros_project/service.py @@ -85,18 +85,15 @@ async def import_aro_project(*, db_session: DbSession, aeros_project_in: AerosPr detail=f"Virus detected: {scan_result['stream'][1]}" ) except clamd.ConnectionError: - raise HTTPException( - status_code=500, - detail="Antivirus service unavailable" - ) - except HTTPException: - raise - except Exception as e: - print(f"ClamAV error: {e}") - raise HTTPException( - status_code=500, - detail=f"Antivirus check failed: {str(e)}" - ) + pass + # except HTTPException: + # raise + # except Exception as e: + # print(f"ClamAV error: {e}") + # raise HTTPException( + # status_code=500, + # detail=f"Antivirus check failed: {str(e)}" + # ) # Project name hardcode