diff --git a/radioPlayer.py b/radioPlayer.py index 9bd2302..3d66e82 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -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 = []