只在最后一次重试时打印错误信息

This commit is contained in:
NianBroken
2025-01-23 18:21:48 +08:00 Unverified
parent 1909442c17
commit eb47a0e595
+1
View File
@@ -100,6 +100,7 @@ def login(url, username, password):
pprint(ret) pprint(ret)
""" """
elif lgn["code"] != 1000: elif lgn["code"] != 1000:
if attempts == 1:
pprint(lgn) pprint(lgn)
run_log = lgn["msg"] run_log = lgn["msg"]