Skip to content

Commit

Permalink
Fix exception handling in manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 authored Sep 1, 2023
1 parent fead04f commit 13105a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def download_model(self, model_name):
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
Expand Down

0 comments on commit 13105a9

Please sign in to comment.