Skip to content

Commit fb6fab8

Browse files
authored
Update exc_handlers.py
1 parent f82ad48 commit fb6fab8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

rating_api/routes/exc_handlers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
from .base import app
1818

1919

20-
@app.exception_handler(ObjectNotFound)
21-
async def not_found_handler(req: starlette.requests.Request, exc: ObjectNotFound):
22-
return JSONResponse(
23-
content=StatusResponseModel(status="Error", message=exc.eng, ru=exc.ru).model_dump(), status_code=404
24-
)
25-
2620

2721
@app.exception_handler(AlreadyExists)
2822
async def already_exists_handler(req: starlette.requests.Request, exc: AlreadyExists):

0 commit comments

Comments
 (0)