diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 9468def0..9c411541 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -275,7 +275,7 @@ def schedule_indexing(): skip_source = ( not source.is_active or source.target_schedule >= next_hour or - source.last_crawl >= previous_run + (source.last_crawl and source.last_crawl >= previous_run) ) if skip_source: continue