From 1efa46b81422fa9a2b0201b9a7794ea4d1be12dd Mon Sep 17 00:00:00 2001 From: j Date: Wed, 8 Nov 2023 09:08:38 +0100 Subject: [PATCH] ignore no type --- management/commands/generate_clips.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/management/commands/generate_clips.py b/management/commands/generate_clips.py index 94098cc..5e6d8a0 100644 --- a/management/commands/generate_clips.py +++ b/management/commands/generate_clips.py @@ -38,7 +38,8 @@ class Command(BaseCommand): durations = [] for e in item.models.Item.objects.filter(data__title=i.data['title']): if 'type' not in e.data: - print("ignoring invalid video", e) + print("ignoring invalid video %s (no type)" % e) + continue if not e.files.filter(selected=True).exists(): continue source = e.files.filter(selected=True)[0].data.path