Skip to content

Commit

Permalink
fix: [crawler] debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Dec 12, 2023
1 parent cdfc9f6 commit 7e9ea48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/crawlers/Crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ def enqueue_capture(self, task_uuid, priority):
# else:
# parent = 'AIL_capture'

if not url:
raise Exception(f'Error: url is None, {task.uuid}, {capture_uuid}, {url}')

self.ail_to_push_discovery.add_crawler_capture(task_uuid, capture_uuid, url, har=har, # parent=parent,
screenshot=screenshot, depth_limit=1, proxy='force_tor')
print(task.uuid, capture_uuid, url, 'Added to ail_to_push_discovery')
Expand Down

0 comments on commit 7e9ea48

Please sign in to comment.