mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Fix exception handling in manage.py (#2912)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user