refactor: 移除异常处理以简化报告处理逻辑

This commit is contained in:
晓丰 2025-06-04 22:35:37 +08:00
parent e7a6df8e3e
commit 7ed3678811

View File

@ -119,7 +119,7 @@ class DailymotionClient:
self.page.goto(self.url, timeout=30000)
self.page.wait_for_load_state("networkidle", timeout=30000)
file_path = f'screenshots/{str(int(time.time()))}_{title}_{link.split("/")[-1]}.png'
file_path = f'screenshots/{str(int(time.time()))}.png'
self.page.screenshot(path=file_path)
if self.page.query_selector("div.cf-turnstile[data-sitekey]"):