Skip to content

Commit 7889760

Browse files
committed
fix: 清理浏览器初始化失败时的 Playwright 资源
初始化失败时复用强制关闭逻辑,回收半初始化的浏览器和 Playwright driver。 同步热更新版本至 v2.0.2,确保发版预检查通过。
1 parent e237429 commit 7889760

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

static/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.0.1
1+
v2.0.2

utils/order_detail_fetcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ async def init_browser(self, headless: bool = None):
222222

223223
except Exception as e:
224224
logger.error(f"浏览器初始化失败: {e}")
225+
await self._force_close_browser()
225226
return False
226227

227228
async def _set_cookies(self):

0 commit comments

Comments
 (0)