continue
if episode and soundfile.episode.slug != episode:
continue
- if soundfile.file is None or not os.path.exists(soundfile.file.path):
+ try:
+ if soundfile.file is None or not os.path.exists(soundfile.file.path):
+ continue
+ except ValueError: # no file associated with it
continue
for format in ('ogg', 'mp3'):
file_path = soundfile.get_format_path(format)
continue
if episode and soundfile.episode.slug != episode:
continue
- if soundfile.file is None or not os.path.exists(soundfile.file.path):
+ try:
+ if soundfile.file is None or not os.path.exists(soundfile.file.path):
+ continue
+ except ValueError: # no file associated with it
continue
file_path = soundfile.get_format_path('waveform.json')
if os.path.exists(file_path) and not force: