mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-30 17:15:08 +08:00
🐛 fix receive reject
This commit is contained in:
parent
29f14a20ce
commit
030237fe22
@ -431,6 +431,7 @@ class Matcher(metaclass=MatcherMeta):
|
|||||||
if state.get(_receive):
|
if state.get(_receive):
|
||||||
return
|
return
|
||||||
state[_receive] = True
|
state[_receive] = True
|
||||||
|
del state["_current_key"]
|
||||||
raise RejectedException
|
raise RejectedException
|
||||||
|
|
||||||
def _decorator(func: T_Handler) -> T_Handler:
|
def _decorator(func: T_Handler) -> T_Handler:
|
||||||
|
Loading…
Reference in New Issue
Block a user