mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-01 16:29:26 +08:00
fix(login.py): add error message when retry count is exceeded
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user