From 23fcbf0048c5d736cfe1f317116ecf8dde4e2b52 Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 27 Jun 2025 17:55:35 -0400 Subject: [PATCH] Handle when `source.last_crawl` is `None` --- tubesync/sync/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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