mirror of https://github.com/coqui-ai/TTS.git
change exception type in TTSDataset loading audio file
parent
9466505f27
commit
455667d2a4
|
@ -83,7 +83,7 @@ class MyDataset(Dataset):
|
|||
try:
|
||||
audio = self.ap.load_wav(filename)
|
||||
return audio
|
||||
except RuntimeError as e:
|
||||
except:
|
||||
print(" !! Cannot read file : {}".format(filename))
|
||||
|
||||
def load_np(self, filename):
|
||||
|
|
Loading…
Reference in New Issue