mirror of
https://github.com/Mangio621/Mangio-RVC-Fork.git
synced 2025-12-16 11:37:44 +01:00
no more unnecessary logs
no more unnecessary logs if certain condition doesn't meet
This commit is contained in:
@@ -95,8 +95,9 @@ def load_audio(file, sr, DoFormant, Quefrency, Timbre):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError(f"Failed to load audio: {e}")
|
raise RuntimeError(f"Failed to load audio: {e}")
|
||||||
|
|
||||||
try: os.remove("%sFORMANTED_%s.wav" % (file_formanted, str(numerator)))
|
if DoFormant:
|
||||||
except Exception: pass; print("couldn't remove formanted type of file")
|
try: os.remove("%sFORMANTED_%s.wav" % (file_formanted, str(numerator)))
|
||||||
|
except Exception: pass; print("couldn't remove formanted type of file")
|
||||||
|
|
||||||
if converted:
|
if converted:
|
||||||
try: os.remove(file_formanted)
|
try: os.remove(file_formanted)
|
||||||
|
|||||||
Reference in New Issue
Block a user