diff --git a/tts/tts_audio_handle.py b/tts/tts_audio_handle.py index 35b9b9e..a70c239 100644 --- a/tts/tts_audio_handle.py +++ b/tts/tts_audio_handle.py @@ -95,9 +95,7 @@ class TTSAudioSplitHandle(TTSAudioHandle): if current == self._current: self._current = self._current + 1 chunks = heapq.heappop(self._priority_queue)[1] - if chunks is None: - pass - else: + if chunks is not None: for chunk in chunks: self.on_next_handle(chunk, 0)