akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
9.06k stars 1.86k forks source link

stock_restricted_release_queue_em(symbol='600006') 报错,解禁数据为空,导致接口返回数据中的data_json["result"]为None #4639

Closed liyqxtu closed 6 months ago

liyqxtu commented 6 months ago

https://data.eastmoney.com/dxf/q/600006.html 解禁数据为空,导致接口返回数据中的data_json["result"]为None 1 导致 ret = ak.stock_restricted_release_queue_em(symbol='600006') File "C:\Python310\Lib\site-packages\akshare\stock_fundamental\stock_restricted_em.py", line 209, in stock_restricted_release_queue_em temp_df = pd.DataFrame(data_json["result"]["data"]) TypeError: 'NoneType' object is not subscriptable

albertandking commented 6 months ago

https://data.eastmoney.com/dxf/q/600006.html 解禁数据为空,导致接口返回数据中的data_json["result"]为None 1 导致 ret = ak.stock_restricted_release_queue_em(symbol='600006') File "C:\Python310\Lib\site-packages\akshare\stock_fundamental\stock_restricted_em.py", line 209, in stock_restricted_release_queue_em temp_df = pd.DataFrame(data_json["result"]["data"]) TypeError: 'NoneType' object is not subscriptable

对的,本地处理下该异常