no exception catch for wav reading errors

This commit is contained in:
Eren Golge 2019-04-28 14:04:49 +02:00
parent 946098df94
commit 70eabaf4d8
1 changed files with 2 additions and 5 deletions

View File

@ -80,11 +80,8 @@ class MyDataset(Dataset):
self.sort_items()
def load_wav(self, filename):
try:
audio = self.ap.load_wav(filename)
return audio
except:
print(" !! Cannot read file : {}".format(filename))
audio = self.ap.load_wav(filename)
return audio
def load_np(self, filename):
data = np.load(filename).astype('float32')