Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #227 from kroka/patch-2
Browse files Browse the repository at this point in the history
force download if deletion is enabled
  • Loading branch information
synesthesiam authored May 26, 2020
2 parents 77d2196 + 6411924 commit 3d42551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhasspy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ async def download_file(url, filename):
src_path = dest_path

# Check if file is already in cache
if os.path.exists(src_path) and (os.path.getsize(src_path) > 0):
if not delete and os.path.exists(src_path) and (os.path.getsize(src_path) > 0):
self._logger.debug(
"Using cached %s for %s", src_path, dest_name
)
Expand Down

0 comments on commit 3d42551

Please sign in to comment.