Skip to content

Commit d7d84d0

Browse files
committed
Correct error type
1 parent b417677 commit d7d84d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tomomibot/audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def mfcc_features(y, sr, n_mels=128, n_mfcc=13):
5353
n_mfcc=n_mfcc)
5454

5555
if mfcc.shape[-1] < DELTA_WIDTH:
56-
raise ValueError('MFCC vector does not contain enough time steps')
56+
raise RuntimeError('MFCC vector does not contain enough time steps')
5757

5858
if not mfcc.any():
5959
return np.zeros(n_mfcc * 3)

0 commit comments

Comments
 (0)