From 59e139724b3523e4a15ac0841bbddac8502d4063 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sat, 4 Dec 2021 22:57:44 +0800 Subject: [PATCH] :hankey: find errors need to fix --- nonebot/dependencies/__init__.py | 1 + nonebot/message.py | 3 +++ nonebot/params.py | 1 + 3 files changed, 5 insertions(+) diff --git a/nonebot/dependencies/__init__.py b/nonebot/dependencies/__init__.py index 80db9840..8cc331cc 100644 --- a/nonebot/dependencies/__init__.py +++ b/nonebot/dependencies/__init__.py @@ -131,6 +131,7 @@ def get_dependent( return dependent +# FIXME: check param types first then run dependencies async def solve_dependencies( *, _dependent: Dependent, diff --git a/nonebot/message.py b/nonebot/message.py index f2ff0ca9..3f89b971 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -97,6 +97,9 @@ def run_postprocessor(func: T_RunPostProcessor) -> T_RunPostProcessor: return func +# FIXME: run handler with try/except skipped exception + + async def _check_matcher( priority: int, Matcher: Type[Matcher], diff --git a/nonebot/params.py b/nonebot/params.py index 484c4d21..79747ca4 100644 --- a/nonebot/params.py +++ b/nonebot/params.py @@ -31,6 +31,7 @@ class EventParam(Param): return event +# FIXME: may detect error param class StateParam(Param): @classmethod def _check(cls, name: str, param: inspect.Parameter) -> bool: