Commit a650993b authored by fred's avatar fred
Browse files

skip soundfiles that do not exist

parent 1d321265
...@@ -44,6 +44,8 @@ class Command(BaseCommand): ...@@ -44,6 +44,8 @@ class Command(BaseCommand):
continue continue
if episode and soundfile.episode.slug != episode: if episode and soundfile.episode.slug != episode:
continue continue
if soundfile.file is None or not os.path.exists(soundfile.file.path):
continue
for format in ('ogg', 'mp3'): for format in ('ogg', 'mp3'):
file_path = soundfile.get_format_path(format) file_path = soundfile.get_format_path(format)
if not os.path.exists(file_path) or force: if not os.path.exists(file_path) or force:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment