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()