From 5a33a3847a01c02f9744121b44ed9d2d67f63b56 Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Sun, 14 Feb 2016 12:22:26 +0100 Subject: [PATCH] Fix for issue #1 Not sure why, but this seems to have disappeared somewhere along the way. Probably when I moved from a looping thread to a timer. --- run.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index ba6bcd9..2c2bcbe 100755 --- a/run.py +++ b/run.py @@ -176,11 +176,12 @@ def nginx_error(error): return error_page(error="We literally have no idea what just happened", code="Unknown") - -cleaner_thread() +if config["DELETE_FILES"]: + cleaner_thread() + if __name__ == '__main__': app.run( port=config["PORT"], host=config["HOST"], debug=config["DEBUG"] - ) \ No newline at end of file + )