Skip to content

Commit

Permalink
fix: IndexError: tuple index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
jiz4oh committed Mar 2, 2024
1 parent 80dadf2 commit bfe44d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efb_wechat_slave/vendor/itchat/components/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def sync_check(self):
r = self.s.get(url, params=params, headers=headers, timeout=config.TIMEOUT)
except requests.exceptions.ConnectionError as e:
try:
if not isinstance(e.args[0].args[1], BadStatusLine):
if not isinstance(e.args[0].reason.args[1], BadStatusLine):
raise
# will return a package with status '0 -'
# and value like:
Expand Down

0 comments on commit bfe44d6

Please sign in to comment.