From 55956de288dfc12924ed0168fc3cad5c24464eee Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 12 Jul 2024 23:21:42 +0200 Subject: [PATCH] Bump yt_dlp Added exception print for hypenation --- requirements.txt | 2 +- src/Settings.py | 2 +- src/UltraSinger.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index ee22d3e..b39fb83 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ scipy~=1.13.1 tensorflow<2.11 tqdm~=4.66.4 #whisperx~=3.1.1 -yt_dlp~=2024.5.27 +yt_dlp~=2024.7.9 isort~=5.13.2 black~=24.4.2 pylint~=3.2.3 diff --git a/src/Settings.py b/src/Settings.py index a9a072a..586d7f0 100644 --- a/src/Settings.py +++ b/src/Settings.py @@ -1,5 +1,5 @@ class Settings: - APP_VERSION = "0.0.11" + APP_VERSION = "0.0.12-dev1" create_midi = True create_plot = False diff --git a/src/UltraSinger.py b/src/UltraSinger.py index 3c815bd..36ee0c9 100644 --- a/src/UltraSinger.py +++ b/src/UltraSinger.py @@ -250,8 +250,9 @@ def hyphenate_each_word(language: str, transcribed_data: list[TranscribedData]) hyphenated_word.append( hyphenation(transcribed_data[pos].word, hyphenator) ) - except: + except Exception as e: print(f"{ULTRASINGER_HEAD} {red_highlighted('Error in hyphenation for language ')} {blue_highlighted(language)}{red_highlighted(', maybe you want to disable it?')}") + print(f"\t{red_highlighted(f'->{e}')}") return None return hyphenated_word