🐛 Fix sign always raise TimeoutException

This commit is contained in:
xtaodada 2024-11-03 16:33:44 +08:00
parent a33664882a
commit 5741e05f35
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -177,6 +177,11 @@ class SignSystem(Plugin):
try:
await self.sign_with_recognize(client)
break
except TimeoutException as e:
if ret == retry - 1:
raise e
await asyncio.sleep(random.randint(0, 3)) # nosec
continue
except NeedChallenge as e:
if ret == retry - 1:
# 重试次数用完,抛出异常