diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 63c7f653508d5aed629c0ccdbf121e45f13db9db..c6898131a83406fdc8570c5eb2e41cffb409dd15 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -18,6 +18,6 @@ > [您的内容] -[document]: https://github.com/soimort/you-get/wiki/FAQ -[issues]: https://github.com/soimort/you-get/issues +[document]: http://itchat.readthedocs.io/zh/latest/ +[issues]: https://github.com/littlecodersh/itchat/issues [itchatmp]: https://github.com/littlecodersh/itchatmp diff --git a/itchat/components/login.py b/itchat/components/login.py index 086e0d674c158c9d4f2cb9183793b45e3ca554bf..6e64fbaeda90abf4dc9a70c783f3d8238dbb4abc 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -293,6 +293,7 @@ def sync_check(self): '_' : int(time.time() * 1000),} headers = { 'User-Agent' : config.USER_AGENT } r = self.s.get(url, params=params, headers=headers, timeout=config.TIMEOUT) + r.raise_for_status() regx = r'window.synccheck={retcode:"(\d+)",selector:"(\d+)"}' pm = re.search(regx, r.text) if pm is None or pm.group(1) != '0':