This commit is contained in:
J. Nick Koston
2025-10-19 14:40:47 -10:00
parent c9700a0450
commit 1946656ea8
4 changed files with 113 additions and 37 deletions

View File

@@ -80,7 +80,7 @@ def download_with_progress(
return cache_path
except Exception as e:
except (OSError, urllib.error.URLError) as e:
if temp_path.exists():
temp_path.unlink()
raise RuntimeError(f"Failed to download {url}: {e}") from e