Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit c118a71

Browse files
committed
Fix: No return data causing unhandled exceptions
1 parent a8071fa commit c118a71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bookserver/routers/rslogging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ async def updatelastpage(
267267
RS_info: Optional[str] = Cookie(None),
268268
):
269269
if request_data.last_page_url is None:
270-
return # todo: log request_data, request.args and request.env.path_info
270+
rslogger.error(f"No data for last page url {request_data}")
271+
return make_json_response(detail="No Data")
272+
# todo: log request_data, request.args and request.env.path_info
271273
if request.state.user:
272274
lpd = request_data.dict()
273275
rslogger.debug(f"{lpd=}")

0 commit comments

Comments
 (0)