Browse Source

flask debug must be string, not bool, int. What a joke

doanguyen 5 years ago
parent
commit
783aba1275
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server.py

+ 1 - 1
server.py

@@ -69,7 +69,7 @@ def create_app() -> Flask:
     app = Flask(__name__)
     app.url_map.strict_slashes = False
     app.debug = DEBUG
-    os.environ["FLASK_DEBUG"] = DEBUG
+    os.environ["FLASK_DEBUG"] = str(DEBUG)
 
     app.config["SQLALCHEMY_DATABASE_URI"] = DB_URI
     app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False