Skip to content

Commit a0135fd

Browse files
committed
Fix exception in case of no lyrics
1 parent 7f8cc5c commit a0135fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mediaplayer

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ def download_lyrics(artist, title):
305305
# logger.debug("-"*10)
306306
# logger.debug(lt)
307307
# logger.debug("-"*10)
308+
if lt is None:
309+
lt = ""
308310
lt = lt.replace("\n", "")
309311
lt = lt.split("[")
310312
lt = ["["+x for x in lt if x]

0 commit comments

Comments
 (0)