Skip to content

Commit

Permalink
Update ovos_tts_plugin_piper/download.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
JarbasAl and coderabbitai[bot] authored Dec 15, 2024
1 parent 919cc6b commit f3f4a61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ovos_tts_plugin_piper/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ def get_voice_files(name: str) -> Tuple[Path, Path]:
except Exception as e:
LOG.error(f"Failed to download {file_url}: {e}")
raise VoiceNotFoundError(f"Could not download file {file_name}") from e
return find_voice(name)

return find_voice(name)

def find_voice(name: str) -> Tuple[Path, Path]:
data_dir = Path(DATA_DIR)
Expand Down

0 comments on commit f3f4a61

Please sign in to comment.