Make torchaudio exception catching less specific

This commit is contained in:
Jedrzej Kosinski 2025-08-12 20:32:32 -07:00
parent e1d4f36d8d
commit 545915698a

View File

@ -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