From e5d15d2d2951565153cf6735f28390c2cedce411 Mon Sep 17 00:00:00 2001 From: NFL_jiancx <1678594309@qq.com> Date: Sun, 9 Feb 2025 17:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E6=97=A0=E6=B3=95=E6=88=90=E5=8A=9F=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NFLmusic.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/NFLmusic.py b/NFLmusic.py index 2a2f8f4..ffb36de 100644 --- a/NFLmusic.py +++ b/NFLmusic.py @@ -888,11 +888,12 @@ def tick(): except ValueError: current_index = -1 abs_path = song_list[current_index + 1] - music_file_without_endswith = abs_path.split("/")[-1].splite(".")[0] + music_file_without_endswith = abs_path.split("/")[-1].split(".")[0] music_playing = abs_path try: lyric = lyrics.load_lyrics(f"{path}/{music_file_without_endswith}.lrc") - except: + except Exception as e: + print(e) lyric = {} music_player.set_format_of_time( lang.get(la, "ui.playing.text.time_format", @@ -913,7 +914,8 @@ def tick(): music_playing = abs_path try: lyric = lyrics.load_lyrics(f"{path}/{music_file_without_endswith}.lrc") - except: + except Exception as e: + print(e) lyric = {} except IndexError: music_file_name = music_dir[0] @@ -927,7 +929,8 @@ def tick(): lang.get(la, "ui.playing.text.time_format", {"_music_": music_file_without_endswith})) playmusic(music_playing) - except: + except Exception as e: + print(e) pass else: playing_progress.state(["!disabled"]) @@ -1151,7 +1154,7 @@ def download_version(): copy(version_json[get_treeview_index(version_list, version_download_choice)]["password"]) -version = "4.0.7" +version = "4.0.8" poem = "" appdata = os.getenv("APPDATA") make_resource()