From df5b01dc83b0cae4ff26fcbedb6ca991a3efb7a4 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 17 Jul 2018 18:28:50 -0400 Subject: [PATCH] Bug when directory is empty with new file upload (server side) --- app.py | 2 ++ 1 file changed, 2 insertions(+) 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):