feat: add “fail fast” dependency check

This commit is contained in:
dark_zoul committed 2026-05-15 20:07:53 +03:00
1 parent 1ea4352737
commit e4e342adf5
3 files changed
+30 -2

No files matched your search

+5 -1
View File
@@ -37,7 +37,11 @@ def bootstrap(db_path: Path | None = None) -> None:
print(f"Plan → {summary}")
# Execute
import asyncio
asyncio.run(executor.execute(actions, pl))
try:
asyncio.run(executor.execute(actions, pl))
except DependencyError as e:
print(f"ERROR: {e}")
continue
# Post summary (no DB readback yet)
pid = extract_playlist_id(pl.get('url', '')) or pl.get('url', '')
db.set_playlist_last_sync(pid)