Spaces:
Running
Running
Yurii Paniv
commited on
Commit
•
25d6741
1
Parent(s):
1163e9d
Fix black
Browse files- ukrainian_tts/tts.py +1 -1
ukrainian_tts/tts.py
CHANGED
@@ -125,7 +125,7 @@ class TTS:
|
|
125 |
"""Downloads file from `url` into local `file_name` file."""
|
126 |
if not exists(file_name):
|
127 |
if not exists(dirname(file_name)):
|
128 |
-
raise ValueError(f
|
129 |
print(f"Downloading {file_name}")
|
130 |
r = requests.get(url, allow_redirects=True)
|
131 |
with open(file_name, "wb") as file:
|
125 |
"""Downloads file from `url` into local `file_name` file."""
|
126 |
if not exists(file_name):
|
127 |
if not exists(dirname(file_name)):
|
128 |
+
raise ValueError(f'Directory "{dirname(file_name)}" doesn\'t exist!')
|
129 |
print(f"Downloading {file_name}")
|
130 |
r = requests.get(url, allow_redirects=True)
|
131 |
with open(file_name, "wb") as file:
|