mirror of
https://github.com/esphome/esphome.git
synced 2025-11-10 11:28:52 +00:00
wip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user