mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Opt: Catch and show exception when load config
This commit is contained in:
@@ -132,7 +132,11 @@ class TaskHandler:
|
||||
task = self.tasks[0]
|
||||
if task.next_run < time.time():
|
||||
start_time = time.time()
|
||||
next(task)
|
||||
try:
|
||||
next(task)
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
self.remove_task(task, nowait=True)
|
||||
end_time = time.time()
|
||||
task.next_run += task.delay
|
||||
with self._lock:
|
||||
|
||||
Reference in New Issue
Block a user