fix:唤醒词服务启动失败不阻塞测试页面

This commit is contained in:
3030332422
2026-04-17 15:09:57 +08:00
parent 725c562aa1
commit fb469a3ee3
@@ -35,8 +35,11 @@ def main() -> int:
try: try:
with app_lock: with app_lock:
app.setup() try:
app.start() app.setup()
app.start()
except Exception as e:
print(f"警告: 唤醒词服务启动失败({e}),测试页面仍可正常使用")
http_server.serve_forever() http_server.serve_forever()
except KeyboardInterrupt: except KeyboardInterrupt:
print("test runtime stopped") print("test runtime stopped")