From 07e6f8e6edb61cdffff50b42c0a14b9b3bf32a03 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 12 Nov 2018 08:42:08 +0100 Subject: [PATCH] do not return a file if we do not find a start file --- prolefeeder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prolefeeder.py b/prolefeeder.py index cb10917..8236767 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -78,6 +78,8 @@ def prepare_download(form): for i, source in enumerate(sources): if source['start_time'] <= form.start_time.data < source['start_time'] + source['length']: start_index = i + if start_index is None: + return None sources = sources[start_index:] # Seek into the first file