Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix: add continue after change_module to prevent spurious error (P2-3)

unknownc40628346aba
diff --git a/deeptutor/api/routers/unified_ws.py b/deeptutor/api/routers/unified_ws.py
index 93c136fd7..e7024ce3a 100644
--- a/deeptutor/api/routers/unified_ws.py
+++ b/deeptutor/api/routers/unified_ws.py
@@ -285,6 +285,7 @@ async def unified_websocket(ws: WebSocket) -> None:
progress.current_stage = LearningStage.PRETEST
service.save(progress)
await safe_send({"type": "module_changed", "module_id": module_id, "success": found})
+ continue
await safe_send({"type": "error", "content": f"Unknown type: {msg_type}"})