瀏覽代碼

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)


Loading…
取消
儲存