diff --git a/src/main.py b/src/main.py index 2ae875a..acc4b93 100644 --- a/src/main.py +++ b/src/main.py @@ -83,7 +83,7 @@ except PermissionError: sys.exit(77) # Output the config file -if os.getenv("FLASK_DEBUG"): +if not os.getenv("FLASK_DEBUG") is None and os.getenv("FLASK_DEBUG") is True: pprint.pprint(configuration_file) # We define the app module used by Flask @@ -402,4 +402,4 @@ def camera_status(): if __name__ == "__main__": - app.run(debug=True, use_reloader=False, host="0.0.0.0", ssl_context="adhoc") + app.run(use_reloader=False, host="0.0.0.0", ssl_context="adhoc")