diff --git a/services/music-render/providers/local.py b/services/music-render/providers/local.py index afc5650..196edc8 100644 --- a/services/music-render/providers/local.py +++ b/services/music-render/providers/local.py @@ -68,6 +68,7 @@ def run_local_generation(task_id: str, params: dict) -> None: file_path = os.path.join(MUSIC_MEDIA_ROOT, filename) dl = requests.get(remote_url, timeout=120, stream=True) + dl.raise_for_status() with open(file_path, "wb") as f: for chunk in dl.iter_content(chunk_size=8192): f.write(chunk)