MCPcopy
hub / github.com/nonebot/nonebot2 / preprocess

Function preprocess

nonebot/plugins/single_session.py:39–41  ·  view source on GitHub ↗
(mutex: bool = Depends(matcher_mutex))

Source from the content-addressed store, hash-verified

37
38@event_preprocessor
39async def preprocess(mutex: bool = Depends(matcher_mutex)):
40 if mutex:
41 raise IgnoredException("Another matcher running")

Callers

nothing calls this directly

Calls 2

DependsFunction · 0.90
IgnoredExceptionClass · 0.85

Tested by

no test coverage detected