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"],