mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 07:49:18 +02:00
raise exception
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ class PlaylistParser:
|
|||||||
if seen is None: seen = set()
|
if seen is None: seen = set()
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
self.logger.error(f"Playlist not found: {path.name}")
|
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()]
|
lines = [line.strip() for line in path.read_text().splitlines() if line.strip()]
|
||||||
|
|
||||||
out = []
|
out = []
|
||||||
|
|||||||
Reference in New Issue
Block a user