Rlacat / jd-automask

防护-京东口罩自动抢购并下单
Mozilla Public License 2.0
587 stars 193 forks source link

KeyError: 'eid' #12

Open jasonchio-cn opened 4 years ago

jasonchio-cn commented 4 years ago

简洁模式已开启 6_309_311_39393 2020-02-10 00:30:12,580 INFO: [106]个需要检测的商品 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 789, in get value = d[option] File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/collections/init.py", line 891, in getitem return self.missing(key) # support subclasses that define missing File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/collections/init.py", line 883, in missing raise KeyError(key) KeyError: 'eid'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/jasonchio/Desktop/jd-automask-master/jd-automask_V1.py", line 71, in eid = global_config.getRaw('config', 'eid') File "/Users/jasonchio/Desktop/jd-automask-master/config/config.py", line 20, in getRaw return self._configRaw.get(section, name) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 792, in get raise NoOptionError(option, section) configparser.NoOptionError: No option 'eid' in section: 'config' (base) zhaoyaoangdeAir:jd-automask-master jasonchio$

yangzelong14 commented 4 years ago

怎么解决呀

hnliuzesen commented 4 years ago

怎么解决呀

文本编辑 jd-automask-V1.py ,第71、72行,删掉