From 3962692522af6588513c6495ffe56a002f44c2f1 Mon Sep 17 00:00:00 2001 From: kanasimi Date: Wed, 3 Apr 2024 06:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E6=AA=94=E5=A3=9E=E4=BA=86?= =?UTF-8?q?=EF=BC=9F=E6=94=BE=E6=A3=84=E4=BB=BB=E5=8B=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routine/20200122.update_vital_articles.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routine/20200122.update_vital_articles.js b/routine/20200122.update_vital_articles.js index cf0bb08..faded38 100644 --- a/routine/20200122.update_vital_articles.js +++ b/routine/20200122.update_vital_articles.js @@ -259,6 +259,8 @@ async function adapt_configuration(latest_task_configuration) { const icon_order = []; for (let item of general.icons_schema) { if (typeof item !== 'string') { + // 設定檔壞了?放棄任務。 + throw new Error('Invalid icons_schema: ' + item); CeL.error('Invalid icons_schema: ' + item); continue; } @@ -594,7 +596,8 @@ async function main_process() { if (wiki.latest_task_configuration.general.modify_talk_pages) { const talk_pages_to_edit = Object.keys(have_to_edit_its_talk_page).length; if (talk_pages_to_edit > wiki.latest_task_configuration.general.talk_page_limit_for_editing - && !do_PIQA && !CeL.env.arg_hash?.forced_edit) { + //&& !do_PIQA + && !CeL.env.arg_hash?.forced_edit) { no_editing_of_talk_pages = true; CeL.warn(`編輯談話頁面數量${talk_pages_to_edit}篇,超越編輯數量上限${wiki.latest_task_configuration.general.talk_page_limit_for_editing}。執行時請設定命令列參數 forced_edit 以強制編輯。`); } else {