Should fix memory usage problem when crawling

This commit is contained in:
Simon
2018-06-14 23:36:54 -04:00
parent 9aed18c2d2
commit adb94cf326
6 changed files with 46 additions and 12 deletions

View File

@@ -73,7 +73,10 @@ class TaskManager:
@staticmethod
def task_complete(result):
task_result, db_path, current_tasks = result.result()
try:
task_result, db_path, current_tasks = result.result()
except Exception as e:
print("Exception during task " + str(e))
print(task_result.status_code)
print(task_result.file_count)