mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Crawler no longer crashes when website has no files
This commit is contained in:
4
tasks.py
4
tasks.py
@@ -63,9 +63,9 @@ class TaskManager:
|
||||
|
||||
def complete_task(self, file_list, task, task_result, crawler_name):
|
||||
|
||||
if file_list:
|
||||
self.search.delete_docs(task_result.website_id)
|
||||
self.search.delete_docs(task_result.website_id)
|
||||
|
||||
if file_list:
|
||||
def iter_lines():
|
||||
|
||||
with open(file_list, "r") as f:
|
||||
|
||||
Reference in New Issue
Block a user