Skip to content

Commit

Permalink
Correct error type
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Apr 18, 2019
1 parent b417677 commit d7d84d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomomibot/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def mfcc_features(y, sr, n_mels=128, n_mfcc=13):
n_mfcc=n_mfcc)

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

if not mfcc.any():
return np.zeros(n_mfcc * 3)
Expand Down

0 comments on commit d7d84d0

Please sign in to comment.