Commit b2112e42 by baiquan

优化hub浏览器关闭逻辑

parent 3bfdacdc
...@@ -60,12 +60,12 @@ async def page_login(browser_id): ...@@ -60,12 +60,12 @@ async def page_login(browser_id):
if not login_res: if not login_res:
retry = 0 retry = 0
while True: while True:
if retry >= 3:
tab.close()
raise AppError(f"重试多次,登录失败")
if retry == 4: if retry == 4:
tab.close() tab.close()
raise AppError(f"未找到账号信息") raise AppError(f"未找到账号信息")
if retry >= 3:
tab.close()
raise AppError(f"重试多次,登录失败")
retry += 1 retry += 1
try: try:
em = "邮箱登录" em = "邮箱登录"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment