0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

raise exception

This commit is contained in:
2025-12-26 20:04:31 +01:00
parent b40d96f5ce
commit 7cff1a89a7

View File

@@ -71,7 +71,7 @@ class PlaylistParser:
if seen is None: seen = set()
if not path.exists():
self.logger.error(f"Playlist not found: {path.name}")
return []
raise Exception("Playlist doesn't exist")
lines = [line.strip() for line in path.read_text().splitlines() if line.strip()]
out = []