From 36f31a62c4c2d744214685924a4067b90a7b7649 Mon Sep 17 00:00:00 2001 From: NFL_jiancx <1678594309@qq.com> Date: Sun, 4 May 2025 13:33:05 +0800 Subject: [PATCH] =?UTF-8?q?debug(NFLmusic):=20=E4=BC=98=E5=8C=96=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=89=93=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在加载歌词失败时,添加"lyric: "前缀以明确错误来源 - 在外部循环捕获异常时,添加更具体的错误信息前缀 --- NFLmusic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NFLmusic.py b/NFLmusic.py index 898a47f..3c8dfce 100644 --- a/NFLmusic.py +++ b/NFLmusic.py @@ -1028,7 +1028,7 @@ def tick(): try: lyric = lyrics.load_lyrics(f"{path}/{music_file_without_endswith}.lrc") except Exception as e: - print(e) + print("lyric: ", e) lyric = {} music_player.set_format_of_time( lang.get(la, "ui.playing.text.time_format", @@ -1050,7 +1050,7 @@ def tick(): try: lyric = lyrics.load_lyrics(f"{path}/{music_file_without_endswith}.lrc") except Exception as e: - print(e) + print("lyric: ", e) lyric = {} except IndexError: music_file_name = music_dir[0] @@ -1065,7 +1065,7 @@ def tick(): {"_music_": music_file_without_endswith})) playmusic(music_playing) except Exception as e: - print(e) + print("External loop error: ", e) pass else: playing_progress.state(["!disabled"])