force download if deletion is enabled

ignore that file might exist already,
change motivated by #213
This commit is contained in:
kroka
2020-05-22 14:33:24 +02:00
committed by GitHub
parent 77d2196f00
commit 6411924cf2
+1 -1
View File
@@ -584,7 +584,7 @@ class RhasspyCore:
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
)