From fbd7e2236afbf1e097c8256f97b921189b9186fc Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 30 Jan 2024 11:24:12 +0100 Subject: [PATCH] fix: [crawlers] fix errored capture start time --- bin/lib/crawlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/crawlers.py b/bin/lib/crawlers.py index f98af175..ed418432 100755 --- a/bin/lib/crawlers.py +++ b/bin/lib/crawlers.py @@ -1331,6 +1331,8 @@ class CrawlerCapture: start_time = self.get_task().get_start_time() if r_str: return start_time + elif not start_time: + return 0 else: start_time = datetime.strptime(start_time, "%Y/%m/%d - %H:%M.%S").timestamp() return int(start_time)