Explorar o código

!2 fix time bug

pcacc hai 3 meses
pai
achega
45c0d5f4fa
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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()