Make torchaudio exception catching less specific (#9309)

This commit is contained in:
Jedrzej Kosinski 2025-08-12 20:34:58 -07:00 committed by GitHub
parent 560d38f34c
commit 898d88e10e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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