|
@@ -93,7 +93,7 @@ class XiaoNianGaoPlusRecommend:
|
|
|
return
|
|
|
self.driver.implicitly_wait(30)
|
|
|
|
|
|
- for i in range(120):
|
|
|
+ for i in range(10):
|
|
|
try:
|
|
|
if self.driver.find_elements(By.ID, "com.tencent.mm:id/f2s"):
|
|
|
Common.logger(self.log_type, self.crawler).info("微信启动成功")
|
|
@@ -119,13 +119,13 @@ class XiaoNianGaoPlusRecommend:
|
|
|
self.driver.find_element(By.ID, "com.android.system:id/dismiss_view").click()
|
|
|
else:
|
|
|
pass
|
|
|
- except NoSuchElementException:
|
|
|
+ except Exception as e:
|
|
|
AliyunLogger.logging(
|
|
|
code="3001",
|
|
|
platform=self.platform,
|
|
|
mode=self.log_type,
|
|
|
env=self.env,
|
|
|
- message="打开微信异常"
|
|
|
+ message=f"打开微信异常:{e}"
|
|
|
)
|
|
|
time.sleep(1)
|
|
|
|