浏览代码

fix(login.py): add error message when retry count is exceeded

master
lanvent 1年前
父节点
当前提交
008178d737
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      lib/itchat/components/login.py

+ 2
- 0
lib/itchat/components/login.py 查看文件

@@ -321,6 +321,8 @@ def start_receiving(self, exitCallback=None, getReceivingFnOnly=False):
retryCount += 1
logger.error(traceback.format_exc())
if self.receivingRetryCount < retryCount:
logger.error("Having tried %s times, but still failed. " % (
retryCount) + "Stop trying...")
self.alive = False
else:
time.sleep(1)


正在加载...
取消
保存