Skip to content

Commit

Permalink
Fix View Lyrics plugin exception with no current song
Browse files Browse the repository at this point in the history
  • Loading branch information
declension authored and lazka committed Sep 25, 2016
1 parent 67ab007 commit 65fa305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quodlibet/quodlibet/ext/events/viewlyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def plugin_on_song_started(self, song):
If there are lyrics associated with `song`, load them into the
lyrics viewer. Otherwise, hides the lyrics viewer.
"""
lyrics = None
if song is not None:
lyrics = song("~lyrics")
if lyrics:
Expand Down

0 comments on commit 65fa305

Please sign in to comment.