diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-04-30 08:10:56 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2010-04-30 08:10:56 +0200 |
commit | 1ff1ec58b8ad638e7ffa901a38351cecb3478320 (patch) | |
tree | 989be504d32215adef01a5cc2fdd68cd213cacc1 /nephilim/winMain.py | |
parent | 60088b7f5c672a3544edbacd88020e591017f653 (diff) |
song: raise KeyError instead of returning empty string
Diffstat (limited to 'nephilim/winMain.py')
-rw-r--r-- | nephilim/winMain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/winMain.py b/nephilim/winMain.py index fd6be88..cbd2649 100644 --- a/nephilim/winMain.py +++ b/nephilim/winMain.py @@ -171,8 +171,8 @@ class winMain(QtGui.QMainWindow): state = self.mpclient.status()['state'] state = 'playing' if state == 'play' else 'paused' if state == 'pause' else 'stopped' if song: - self.setWindowTitle('%s by %s - %s [%s]'%(song['title'], song['artist'], APPNAME, state)) - self.__statuslabel.setText('%s by %s on %s [%s]'%(song['title'], song['artist'],song['album'], state)) + self.setWindowTitle('%s by %s - %s [%s]'%(song['?title'], song['?artist'], APPNAME, state)) + self.__statuslabel.setText('%s by %s on %s [%s]'%(song['?title'], song['?artist'],song['?album'], state)) else: self.setWindowTitle(APPNAME) self.__statuslabel.setText('') |