Skip to content

Commit 72b6c1c

Browse files
committed
trying reverting back the RequestValidationError
1 parent cfdefef commit 72b6c1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osbot_fast_api/api/routes/Fast_API__Routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def wrapper(**kwargs):
106106
result = function(**converted_kwargs) # Call original function
107107
except HTTPException:
108108
raise # Re-raise HTTPException unchanged
109-
except RequestValidationError:
110-
raise # also re-raise RequestValidationError
109+
# except RequestValidationError:
110+
# raise # also re-raise RequestValidationError
111111
except Exception as e:
112112
raise HTTPException(status_code=400, detail=f"{type(e).__name__}: {e}") # Convert exceptions to HTTP 400
113113

0 commit comments

Comments
 (0)