taizilongxu / douban.fm

:radio: douban.fm based on Python
MIT License
787 stars 190 forks source link

如果红心兆赫一个也没有的话,会出现一个错误 #15

Closed zqhong closed 10 years ago

zqhong commented 10 years ago
Traceback (most recent call last):
  File "/usr/local/bin/douban.fm", line 9, in <module>
    load_entry_point('douban.fm==0.2.9', 'console_scripts', 'douban.fm')()
  File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 323, in main
    w = Win(douban)
  File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 53, in __init__
    self.play()
  File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 130, in play
    self.douban.get_song()
  File "/usr/local/lib/python2.7/dist-packages/douban/douban_token.py", line 157, in get_song
    self.playingsong  = self.playlist.pop(0)
IndexError: pop from empty list

其他都好赞!!!

taizilongxu commented 10 years ago

Copy! 下个版本修复