mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
Fix exception handling in manage.py (#2912)
This commit is contained in:
1 parent
40b527345f
commit
b3b1555d82
1 file changed
+1
-1
+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