From a43463c7a11b13545c0b6ee6252b18e7de42ee7a Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 7 Mar 2023 14:58:39 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=90=8E=E8=87=AA=E5=8A=A8=E6=89=93=E5=BC=80=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E7=9A=84=E7=94=A8=E6=88=B7=E6=8C=87=E5=8D=97=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=20https://github.com/siyuan-note/siyuan/issues/7517?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 3ed9b0b91..d59d0775b 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -783,6 +783,8 @@ func clearWorkspaceTemp() { } func upgradeUserGuide() { + defer logging.Recover() + dirs, err := os.ReadDir(util.DataDir) if nil != err { logging.LogErrorf("read dir [%s] failed: %s", util.DataDir, err)