From 14848befb1fa0af2709d98139ca00a0404c9dc8e Mon Sep 17 00:00:00 2001 From: yshtcn Date: Mon, 25 Sep 2023 21:15:52 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit d8cb43934c49a7dba8d22b55f28bf90eef5c45d7 Author: yshtcn Date: Mon Sep 25 21:08:39 2023 +0800 - 增加一次重试机会,以避免长时间的等待。 # Conflicts: # Diary Assistant.py --- Diary Assistant.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Diary Assistant.py b/Diary Assistant.py index 796ceb4..4300e4c 100644 --- a/Diary Assistant.py +++ b/Diary Assistant.py @@ -160,8 +160,7 @@ def main(): print(f"set menu:{result}") print("Checking for updates...") updates = get_updates(last_update_id) - if updates and "result" in updates: - + if updates and "result" in updates: print(f"Received updates: {updates}") for update in updates["result"]: