diff --git a/app.py b/app.py index 2057574..77cf826 100644 --- a/app.py +++ b/app.py @@ -563,6 +563,8 @@ def api_complete_task(): if task: filename = "./tmp/" + str(task_result.website_id) + ".json" + if not os.path.exists(filename): + filename = None taskManager.complete_task(filename, task, task_result, name) if filename and os.path.exists(filename):