From 47e13431873483604642bcfb412f20f53bf120ad Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 22 Jun 2023 16:09:18 +0200 Subject: [PATCH] fix: [crawler] same capture uuid if a domain is already crawled --- bin/lib/crawlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lib/crawlers.py b/bin/lib/crawlers.py index 300edb66..6f6bf5b7 100755 --- a/bin/lib/crawlers.py +++ b/bin/lib/crawlers.py @@ -1239,7 +1239,8 @@ class CrawlerCapture: def create(self, task_uuid): if self.exists(): - raise Exception(f'Error: Capture {self.uuid} already exists') + print(f'Capture {self.uuid} already exists') # TODO LOGS + return None launch_time = int(time.time()) r_crawler.hset(f'crawler:task:{task_uuid}', 'capture', self.uuid) r_crawler.hset('crawler:captures:tasks', self.uuid, task_uuid)