mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
fix except 语句
This commit is contained in:
parent
3faae85713
commit
f4a4998d9e
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ class ConnectionHandler:
|
||||||
opus_datas, duration = self.tts.audio_to_opus_data(tts_file)
|
opus_datas, duration = self.tts.audio_to_opus_data(tts_file)
|
||||||
else:
|
else:
|
||||||
self.logger.bind(tag=TAG).error(f"TTS出错:文件不存在{tts_file}")
|
self.logger.bind(tag=TAG).error(f"TTS出错:文件不存在{tts_file}")
|
||||||
except asyncio.TimeoutError | TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
self.logger.bind(tag=TAG).error("TTS超时")
|
self.logger.bind(tag=TAG).error("TTS超时")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.bind(tag=TAG).error(f"TTS出错: {e}")
|
self.logger.bind(tag=TAG).error(f"TTS出错: {e}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue