这是一个创建于 2351 天前的主题,其中的信息可能已经有所发展或是发生改变。
Traceback (most recent call last):
File "qichacha.py", line 286, in <module>
qichacha().read_data()
File "qichacha.py", line 83, in read_data
self.search_qichacha_index(name)
File "qichacha.py", line 111, in search_qichacha_index
if e.error !=errno.ECONNRESET:
AttributeError: 'ConnectionError' object has no attribute 'error'
try:
response=self.s.post(self.search_index,headers=self.headers,data=Form_data,cookies=self.cookies,auth=self.auth,proxies=self.proxies,verify=False)
except SocketError as e:
if e.error !=errno.ECONNRESET:
raise
else:
self.search_qichacha_index()