From b3b1555d82385bee566d1b9d578efe7fe8a74b01 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:54:30 +0300 Subject: [PATCH] Fix exception handling in manage.py (#2912) --- TTS/utils/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/manage.py b/TTS/utils/manage.py index d6fbfb16..70d35228 100644 --- a/TTS/utils/manage.py +++ b/TTS/utils/manage.py @@ -325,7 +325,7 @@ class ModelManager(object): elif "hf_url" in model_item: self._download_hf_model(model_item, output_path) - except requests.Exception.RequestException as e: + except requests.RequestException as e: print(f" > Failed to download the model file to {output_path}") rmtree(output_path) raise e