From 75ec336285372f89b5137a75617963bb10426850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Tue, 3 Dec 2024 09:02:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A9=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20close=20#284?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/xiaomusic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaomusic/xiaomusic.py b/xiaomusic/xiaomusic.py index 69d93b5..d6f8580 100644 --- a/xiaomusic/xiaomusic.py +++ b/xiaomusic/xiaomusic.py @@ -157,7 +157,7 @@ class XiaoMusic: log_file = self.config.log_file log_path = os.path.dirname(log_file) - if not os.path.exists(log_path): + if log_path and not os.path.exists(log_path): os.makedirs(log_path) if os.path.exists(log_file): os.remove(log_file)