From 62a94c5c153d17818a9b87252ebccb8dd8271b27 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 24 Nov 2024 05:26:35 +0800 Subject: [PATCH] Update tool_task.py --- plugins/webstats/tool_task.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/webstats/tool_task.py b/plugins/webstats/tool_task.py index c57f517da..e1c1af25d 100644 --- a/plugins/webstats/tool_task.py +++ b/plugins/webstats/tool_task.py @@ -39,10 +39,9 @@ def getTaskConf(): def getConfigData(): - try: + conf = getTaskConf() + if os.path.exists(conf): return json.loads(mw.readFile(getTaskConf())) - except: - pass return { "task_id": -1, "task_list": ["migrate_hot_logs"],