From b29fcb6e56b48e6a18873930bd528c3d1d1d5473 Mon Sep 17 00:00:00 2001 From: meetwq Date: Wed, 21 Jun 2023 12:01:57 +0800 Subject: [PATCH] ignore ModuleNotFoundError --- nonebot_plugin_session/model.py | 2 +- nonebot_plugin_session/saa.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_session/model.py b/nonebot_plugin_session/model.py index f4c44d0..8cc8248 100644 --- a/nonebot_plugin_session/model.py +++ b/nonebot_plugin_session/model.py @@ -81,5 +81,5 @@ async def get_or_add_session_model( await db_session.refresh(session_model) return session_model -except (ImportError, RuntimeError): +except (ImportError, RuntimeError, ModuleNotFoundError): pass diff --git a/nonebot_plugin_session/saa.py b/nonebot_plugin_session/saa.py index d55b98e..7c470d5 100644 --- a/nonebot_plugin_session/saa.py +++ b/nonebot_plugin_session/saa.py @@ -53,5 +53,5 @@ def get_saa_target(self: Session) -> Optional[PlatformTarget]: ) Session.get_saa_target = get_saa_target -except (ImportError, RuntimeError): +except (ImportError, RuntimeError, ModuleNotFoundError): pass diff --git a/pyproject.toml b/pyproject.toml index e40a240..bd16bfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot_plugin_session" -version = "0.0.5" +version = "0.0.6" description = "Nonebot2 会话信息提取与会话id定义" authors = ["meetwq "] license = "MIT"