fix: 修复口令导致异常关闭的问题
This commit is contained in:
parent
77a37a9438
commit
1b3ed3b35a
@ -640,13 +640,13 @@ class XiaoMusic:
|
|||||||
self.log.info("收到消息:%s 控制面板:%s", query, ctrl_panel)
|
self.log.info("收到消息:%s 控制面板:%s", query, ctrl_panel)
|
||||||
|
|
||||||
# 匹配命令
|
# 匹配命令
|
||||||
|
try:
|
||||||
opvalue, oparg = self.match_cmd(query, ctrl_panel)
|
opvalue, oparg = self.match_cmd(query, ctrl_panel)
|
||||||
if not opvalue:
|
if not opvalue:
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
await self.check_replay()
|
await self.check_replay()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
|
||||||
func = getattr(self, opvalue)
|
func = getattr(self, opvalue)
|
||||||
await func(arg1=oparg)
|
await func(arg1=oparg)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user