mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
🐛 为 'get_browser()' 添加缺少的 'await' 关键字以确保正确等待异步函数执行
This commit is contained in:
parent
2fe825f67d
commit
f578123acb
@ -305,7 +305,7 @@ class AsyncPlaywright:
|
||||
参数:
|
||||
user_agent: 请求头
|
||||
"""
|
||||
browser = get_browser()
|
||||
browser = await get_browser()
|
||||
ctx = await browser.new_context(**kwargs)
|
||||
page = await ctx.new_page()
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user