summaryrefslogtreecommitdiff
path: root/ATRI
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI')
-rw-r--r--ATRI/exceptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py
index 457acc8..cd54db4 100644
--- a/ATRI/exceptions.py
+++ b/ATRI/exceptions.py
@@ -133,7 +133,8 @@ async def _(bot: Bot, event, matcher: Matcher, exception: Optional[Exception]):
group_id = str(event.group_id)
if not limiter.check(group_id):
msg = MessageBuilder("该群报错提示已达限制, 将冷却10min").text("如需反馈请: 来杯红茶")
- limiter.increase(group_id)
+ else:
+ limiter.increase(group_id)
try:
await matcher.finish(msg)