Skip to content

Commit

Permalink
🐛 修复浏览器安装后没有启动的问题 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-kirami committed Sep 9, 2023
1 parent 49ea749 commit 4243ac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kirami/utils/webwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def launch(
except Error as e:
logger.opt(exception=e).error(f"{bot_config.browser} 浏览器未安装,正在尝试自动安装")
await install_browser()
await cls.launch(browser, *args, **kwargs)

@classmethod
async def stop(cls) -> None:
Expand Down

0 comments on commit 4243ac7

Please sign in to comment.