Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 0f58b9b

Browse files
author
yashksaini-coder
committed
Fix exception handling in HTTP exception handler
1 parent e7c68f8 commit 0f58b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def http_exception_handler(request: Request, exc: StarletteHTTPException):
3838
},
3939
status_code=405
4040
)
41-
raise exc # Re-raise other HTTP exceptions
41+
raise Exception # Re-raise other HTTP exceptions
4242

4343
app.include_router(stock_router)
4444
app.include_router(agent_router)

0 commit comments

Comments
 (0)