Open-Source Frontier Voice AI
Python
fix: replace bare except with queue.Empty in streamer.py (#287)
eason45e6361a4360
diff --git a/vibevoice/modular/streamer.py b/vibevoice/modular/streamer.pyindex 7a76cb0..5dd7892 100644--- a/vibevoice/modular/streamer.py+++ b/vibevoice/modular/streamer.py@@ -3,7 +3,7 @@ from __future__ import annotationsimport torchimport asyncio-from queue import Queue+from queue import Empty, Queuefrom typing import TYPE_CHECKING, Optional@@ -128,7 +128,7 @@ class AudioBatchIterator:samples_to_remove.add(idx)else:batch_chunks[idx] = value- except:+ except Empty:# Queue is empty for this sample, skip it this iterationpass