Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

KeyError: 'location' #7

Open
zhaoyueyi opened this issue Sep 13, 2021 · 0 comments
Open

KeyError: 'location' #7

zhaoyueyi opened this issue Sep 13, 2021 · 0 comments

Comments

@zhaoyueyi
Copy link

zhaoyueyi commented Sep 13, 2021

czHeaders对象创建成功! 初始化成功!czUserClassName: test 本次更新后的cookies:<RequestsCookieJar[<Cookie org.springframework.web.servlet.i18n.CookieLocaleResolver.LOCALE=zh_CN for />, <Cookie JSESSIONID=A7FF9AB47DE172DB3A374DFD94CDA913 for ids.xidian.edu.cn/authserver>, <Cookie route=0c3b87d026db5a8dc3b618d30f0e5979 for ids.xidian.edu.cn/authserver>]> 本次更新后的cookies:<RequestsCookieJar[<Cookie org.springframework.web.servlet.i18n.CookieLocaleResolver.LOCALE=zh_CN for />, <Cookie JSESSIONID=A7FF9AB47DE172DB3A374DFD94CDA913 for ids.xidian.edu.cn/authserver>, <Cookie route=0c3b87d026db5a8dc3b618d30f0e5979 for ids.xidian.edu.cn/authserver>]> Traceback (most recent call last): File ".\index.py", line 7, in <module> user.login() File "D:\study\xidian-class-shedule\CZUser.py", line 159, in login self.__getTrueCookies() File "D:\study\xidian-class-shedule\CZUser.py", line 131, in __getTrueCookies secondRedirectURL = firstRedirectRequst.headers['Location'] File "D:\Python\lib\site-packages\requests\structures.py", line 54, in __getitem__ return self._store[key.lower()][1] KeyError: 'location'

@zhaoyueyi zhaoyueyi changed the title 不行呢 KeyError: 'location' Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant