Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Make torchaudio exception catching less specific (#9309)

Jedrzej Kosinski898d88e10e45
diff --git a/comfy_api/latest/_ui.py b/comfy_api/latest/_ui.py
index 61597038f..26a55615f 100644
--- a/comfy_api/latest/_ui.py
+++ b/comfy_api/latest/_ui.py
@@ -12,7 +12,7 @@ import torch
try:
import torchaudio
TORCH_AUDIO_AVAILABLE = True
-except ImportError:
+except:
TORCH_AUDIO_AVAILABLE = False
from PIL import Image as PILImage
from PIL.PngImagePlugin import PngInfo