只在最后一次重试时打印错误信息
This commit is contained in:
@@ -100,12 +100,13 @@ def login(url, username, password):
|
|||||||
pprint(ret)
|
pprint(ret)
|
||||||
"""
|
"""
|
||||||
elif lgn["code"] != 1000:
|
elif lgn["code"] != 1000:
|
||||||
pprint(lgn)
|
if attempts == 1:
|
||||||
run_log = lgn["msg"]
|
pprint(lgn)
|
||||||
|
run_log = lgn["msg"]
|
||||||
|
|
||||||
# 如果是Github Actions运行,则将运行日志写入到GitHub Actions的日志文件中
|
# 如果是Github Actions运行,则将运行日志写入到GitHub Actions的日志文件中
|
||||||
if github_actions:
|
if github_actions:
|
||||||
write_github_summary(run_log, lgn["code"])
|
write_github_summary(run_log, lgn["code"])
|
||||||
|
|
||||||
# 如果未成功登录,等待1秒后重试
|
# 如果未成功登录,等待1秒后重试
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user