mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-07 08:15:12 +02:00
feat: add “fail fast” dependency check
This commit is contained in:
1 parent
1ea4352737
commit
e4e342adf5
3 files changed
+30
-2
No files matched your search
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user