Skip to content

Commit

Permalink
Update TTS/utils/manage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Aarni Koskela <[email protected]>
  • Loading branch information
WeberJulian and akx authored Dec 11, 2023
1 parent 92264da commit 64e75cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def check_if_configs_are_equal(self, model_name, model_item, output_path):
remote_url = url
break

config_remote = requests.get(remote_url, timeout=2).json()
resp = requests.get(remote_url, timeout=2)
resp.raise_for_status()
config_remote = resp.json()

if not config_local == config_remote:
print(f" > {model_name} is already downloaded however it has been changed. Redownloading it...")
Expand Down

0 comments on commit 64e75cb

Please sign in to comment.