From 7884a5769f517f5e050558c9fc980b25decff520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Thu, 30 May 2024 14:42:12 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E4=BF=AE=E5=A4=8D=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/xiaomusic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaomusic/xiaomusic.py b/xiaomusic/xiaomusic.py index b635ff6..af0c537 100644 --- a/xiaomusic/xiaomusic.py +++ b/xiaomusic/xiaomusic.py @@ -154,7 +154,7 @@ class XiaoMusic: self.device_id = h.get("deviceID") break else: - raise Exception( + self.log.error( f"we have no hardware: {self.config.hardware} please use `micli mina` to check" )