mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(cloud_music): 捕获FinishedException异常并处理错误日志
This commit is contained in:
parent
2e0f2eae41
commit
8aea42e708
1 changed files with 3 additions and 2 deletions
|
|
@ -78,5 +78,6 @@ async def handle_function(msg: MessageEvent):
|
|||
|
||||
except Exception as e:
|
||||
if isinstance(e, FinishedException):
|
||||
logger.error(f"处理点歌请求时发生错误: {e}")
|
||||
await music.finish("处理点歌请求时发生错误,请稍后重试。这绝对不是我的错,绝对不是!")
|
||||
raise
|
||||
logger.error(f"处理点歌请求时发生错误: {e}")
|
||||
await music.finish("处理点歌请求时发生错误,请稍后重试。这绝对不是我的错,绝对不是!")
|
||||
Loading…
Reference in a new issue