Skip to content

Commit

Permalink
Fix script crashing on incorrect wav
Browse files Browse the repository at this point in the history
  • Loading branch information
robinhad authored Feb 16, 2021
1 parent ee0e5c6 commit 66e801b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/import_ukrainian.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _maybe_convert_wav(mp3_filename, wav_filename):
transformer.convert(samplerate=SAMPLE_RATE, n_channels=CHANNELS)
try:
transformer.build(mp3_filename, wav_filename)
except sox.core.SoxError:
except Exception as e: # TODO: improve exception handling
pass


Expand Down

0 comments on commit 66e801b

Please sign in to comment.