mirror of
https://github.com/simon987/od-database.git
synced 2025-12-14 07:09:03 +00:00
Bug when directory is empty with new file upload (server side)
This commit is contained in:
2
app.py
2
app.py
@@ -563,6 +563,8 @@ def api_complete_task():
|
|||||||
if task:
|
if task:
|
||||||
|
|
||||||
filename = "./tmp/" + str(task_result.website_id) + ".json"
|
filename = "./tmp/" + str(task_result.website_id) + ".json"
|
||||||
|
if not os.path.exists(filename):
|
||||||
|
filename = None
|
||||||
taskManager.complete_task(filename, task, task_result, name)
|
taskManager.complete_task(filename, task, task_result, name)
|
||||||
|
|
||||||
if filename and os.path.exists(filename):
|
if filename and os.path.exists(filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user