pycharm中执行报错,是和python版本有关系吗?
Opened this issue · 0 comments
"C:\Program Files\Python38\python.exe" D:/Python/Project/netease-cloud-playtimes/main.py
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\threading.py", line 932, in bootstrap_inner
self.run()
File "C:\Program Files\Python38\lib\threading.py", line 1254, in run
self.function(*self.args, **self.kwargs)
File "D:/Python/Project/netease-cloud-playtimes/main.py", line 161, in taskPool
self.statusBar.SetStatusText(task.login())
File "D:\Python\Project\netease-cloud-playtimes\api.py", line 58, in login
code = json.loads(response.text)['code']
File "C:\Program Files\Python38\lib\json_init.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python38\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python38\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)