fix: #67 没配置did时也允许启动 http 服务

This commit is contained in:
涵曦 2024-05-27 14:47:40 +00:00
parent 49ec1bb7c0
commit 346f0af543

View File

@ -172,7 +172,7 @@ class XiaoMusic:
if d["model"].endswith(self.config.hardware.lower()) if d["model"].endswith(self.config.hardware.lower())
) )
except StopIteration: except StopIteration:
raise Exception( self.log.error(
f"cannot find did for hardware: {self.config.hardware} " f"cannot find did for hardware: {self.config.hardware} "
"please set it via MI_DID env" "please set it via MI_DID env"
) )