From 38defe37cd0fe92d70d5345cb14b313391c1d27c Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Thu, 2 May 2024 20:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20=E5=88=A0=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9A=84=20noqa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/utils/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_tetris_stats/utils/browser.py b/nonebot_plugin_tetris_stats/utils/browser.py index cbf4692..a532514 100644 --- a/nonebot_plugin_tetris_stats/utils/browser.py +++ b/nonebot_plugin_tetris_stats/utils/browser.py @@ -45,7 +45,7 @@ class BrowserManager: logger.error('安装/更新 playwright 浏览器失败') try: await cls._start_browser() - except BaseException as e: # noqa: BLE001 不知道会有什么异常, 交给用户解决 + except BaseException as e: # 不知道会有什么异常, 交给用户解决 raise ImportError( 'playwright 启动失败, 请尝试在命令行运行 playwright install-deps firefox, 如果仍然启动失败, 请参考上面的报错👆' ) from e