dongchao-cn / miao_fm

this is a online music server, just like douban FM
5 stars 3 forks source link

运行config.py会报错 #16

Open fz1989 opened 10 years ago

fz1989 commented 10 years ago

运行master的config.py会报错。。。

Traceback (most recent call last):
  File "/home/fz/Project/PythonProject/miao_fm/Master/scheduler.py", line 23, in update_all
    update_the_tag()
  File "/home/fz/Project/PythonProject/miao_fm/Master/music/get_music_tag.py", line 110, in update_the_tag
    music_tags = getmusictags(music_num)
  File "/home/fz/Project/PythonProject/miao_fm/Master/music/get_music_tag.py", line 72, in getmusictags
    span = tag_cloud[0].findAll('span')
IndexError: list index out of range
fz1989 commented 10 years ago
(fm)fz@fz-Work:~/Project/PythonProject/miao_fm/Master$ python config.py 
[config] start 2013-11-20 12:20:29.280266
[user] add admin...
[music] add demo music...
[status] gen init status...
[update_all] start 2013-11-20 12:20:29.379819
[gc] start 2013-11-20 12:20:29.379863
[gc] finish 2013-11-20 12:20:38.158309
[update_the_tag] start 2013-11-20 12:20:38.158370
Mr. Curiosity Jason Mraz
[update_the_tag] error! 2013-11-20 12:20:39.093878
Traceback (most recent call last):
  File "/home/fz/Project/PythonProject/miao_fm/Master/scheduler.py", line 23, in update_all
    update_the_tag()
  File "/home/fz/Project/PythonProject/miao_fm/Master/music/get_music_tag.py", line 110, in update_the_tag
    music_tags = getmusictags(music_num)
  File "/home/fz/Project/PythonProject/miao_fm/Master/music/get_music_tag.py", line 72, in getmusictags
    span = tag_cloud[0].findAll('span')
IndexError: list index out of range
[user_get_music] start 2013-11-20 12:20:39.094218
[user_get_music] finish 2013-11-20 12:20:54.386996
[gen_status] start 2013-11-20 12:20:54.387085
[gen_status] finish 2013-11-20 12:20:57.493523
[update_all] finish 2013-11-20 12:20:57.493587
[config] finish 2013-11-20 12:20:57.497024
Config success! Please run `main.py` & visit http://localhost:8000/

完整的。。。。。。

fz1989 commented 10 years ago

不过好像也不太影响。。。