Closed liyqxtu closed 8 months ago
https://data.eastmoney.com/dxf/q/600006.html 解禁数据为空,导致接口返回数据中的data_json["result"]为None 导致 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
对的,本地处理下该异常
https://data.eastmoney.com/dxf/q/600006.html 解禁数据为空,导致接口返回数据中的data_json["result"]为None 导致 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