pcacc 3 hónapja
szülő
commit
45c0d5f4fa
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      dongri_task.py

+ 2 - 0
dongri_task.py

@@ -60,6 +60,8 @@ def get_todo_time(todo_str):
     return None
 
 def is_within_n_minutes(target_time_str, n_minutes_left, n_minutes_right):
+    if target_time_str == None:
+        return False
     # 获取当前时间
     now = datetime.now()