Skip to content

Commit

Permalink
ignore ModuleNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Jun 21, 2023
1 parent 79aa1a3 commit b29fcb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_session/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion nonebot_plugin_session/saa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_plugin_session"
version = "0.0.5"
version = "0.0.6"
description = "Nonebot2 会话信息提取与会话id定义"
authors = ["meetwq <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit b29fcb6

Please sign in to comment.