From 9f09c621c3884e07dd254490404c0f5e3dbb0d5c Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Thu, 30 Jan 2025 04:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/sv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsuid_core/sv.py b/gsuid_core/sv.py index d30fab3..7a07b18 100644 --- a/gsuid_core/sv.py +++ b/gsuid_core/sv.py @@ -35,6 +35,7 @@ def modify_func(func): async def wrapper(bot: Bot, event: Event): try: result = await func(bot, event) + return result except Exception: logger.error(f'[SV] {event.command} 执行时出现错误!') logger.error(traceback.format_exc()) @@ -47,7 +48,6 @@ def modify_func(func): if bot.session_id in mutiply_instances and bot.mutiply_tag: mutiply_instances.pop(bot.session_id) mutiply_map.pop(bot.temp_gid) - return result return wrapper