Skip to content

Commit 1c308e0

Browse files
committed
Fixed JSONResponse error
1 parent fef4ca5 commit 1c308e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gs/backend/exceptions/exception_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def unauthorized_exception_handler(request: Request, exc: UnauthorizedErro
112112
)
113113

114114
@app.exception_handler(UnknownError)
115-
async def unknown_exception_handler(request: Request, exc: UnknownError) -> HTTPException:
115+
async def unknown_exception_handler(request: Request, exc: UnknownError) -> JSONResponse:
116116
"""
117117
@brief handle all UnknownError exceptions with HTTPException
118118
@attribute request (Request) - The request that caused the exception

0 commit comments

Comments
 (0)