Skip to content

Commit

Permalink
fix: [crawler] same capture uuid if a domain is already crawled
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jun 22, 2023
1 parent 4567c9d commit 47e1343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,8 @@ def is_ongoing(self):

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)
Expand Down

0 comments on commit 47e1343

Please sign in to comment.