Skip to content

Commit 0a4864d

Browse files
authored
Update exception_handlers.py
1 parent ddb4157 commit 0a4864d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gs/backend/exceptions/exception_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def unknown_exception_handler(request: Request, exc: UnknownError) -> HTTP
120120
"""
121121
return JSONResponse(
122122
status_code=HTTP_400_BAD_REQUEST,
123-
detail=exc.message,
123+
content={"detail": exc.message},
124124
)
125125

126126

@@ -134,4 +134,4 @@ async def sun_position_exception_handler(request: Request, exc: SunPositionError
134134
return JSONResponse(
135135
status_code=HTTP_400_BAD_REQUEST,
136136
content={"message": exc.message},
137-
)
137+
)

0 commit comments

Comments
 (0)