Crawler no longer crashes when website has no files

This commit is contained in:
Simon
2018-07-15 10:46:48 -04:00
parent e18ded7ac1
commit 112400886e
3 changed files with 15 additions and 13 deletions

2
app.py
View File

@@ -562,7 +562,7 @@ def api_complete_task():
taskManager.complete_task(filename, task, task_result, name)
if os.path.exists(filename):
if filename and os.path.exists(filename):
os.remove(filename)
# TODO: handle callback here