diff --git a/game_task/game_task_encyclopedia.py b/game_task/game_task_encyclopedia.py index 2eb53d1..5b62245 100644 --- a/game_task/game_task_encyclopedia.py +++ b/game_task/game_task_encyclopedia.py @@ -305,6 +305,16 @@ def submit_answer(group_id, player_id, task_id, answer): f"🌈 比如:1\n" f"🎀 再试一次吧!" ) + except Exception as e : + print(f"submit_answer:{e}") + return ( + f"😅 哎呀,小调皮\n" + f"🌟 任务ID格式不对哦\n" + f"🎈 应该是纯数字\n" + f"🌈 比如:1\n" + f"🎀 再试一次吧!" + ) + finally: cursor.close() conn.close()