From edabf40ba1c24358b8675068c4d0388eb36fd72c Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:06:47 +0700 Subject: [PATCH] ai: ignore latex dir clear error --- .config/ags/modules/sideleft/apis/ai_chatmessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/sideleft/apis/ai_chatmessage.js b/.config/ags/modules/sideleft/apis/ai_chatmessage.js index 2b8864826..cf2498ac8 100644 --- a/.config/ags/modules/sideleft/apis/ai_chatmessage.js +++ b/.config/ags/modules/sideleft/apis/ai_chatmessage.js @@ -84,7 +84,7 @@ const TextBlock = (content = '') => Label({ Utils.execAsync(['bash', '-c', `rm ${LATEX_DIR}/*`]) .then(() => Utils.execAsync(['bash', '-c', `mkdir -p ${LATEX_DIR}`])) - .catch(print); + .catch(() => {}); const Latex = (content = '') => { const latexViewArea = Box({ // vscroll: 'never',