Update TTS/utils/manage.py

Co-authored-by: Aarni Koskela <akx@iki.fi>
pull/3247/head
Julian Weber 2023-12-11 23:44:09 +01:00 committed by GitHub
parent 92264dac94
commit 64e75cbcb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -352,7 +352,9 @@ class ModelManager(object):
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...")