shidenggui / easyhistory

用于获取维护股票的历史数据
161 stars 124 forks source link

行情下载时有时会出现IndexError: list index out of range #12

Closed jinrongxiaoe closed 8 years ago

jinrongxiaoe commented 8 years ago

最后两行错误是: File "/home/user/easyhistory/easyhistory/day.py", line 43, in update_single_code self.store.write(stock_code, updated_data) File "/home/user/easyhistory/easyhistory/store.py", line 43, in write updated_data_start_date = updated_data[0][0] IndexError: list index out of range

然后程序就退出了

jinrongxiaoe commented 8 years ago

这个可以close了,:)

jinrongxiaoe commented 8 years ago

https://github.com/shidenggui/easyhistory/pull/13/commits/09f4aa9b532fe06ee35edfd507c4de9824266d28 忘了加fix的link