From 1955eca6d4a20fdb5a0290007841769dca78fb68 Mon Sep 17 00:00:00 2001 From: Fuyang Liu Date: Mon, 20 Feb 2017 15:30:21 +0100 Subject: [PATCH] Allow flask propagate exceptions when debug=False --- section4/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/section4/app.py b/section4/app.py index 22bcdfa1..69ed7ed1 100644 --- a/section4/app.py +++ b/section4/app.py @@ -5,6 +5,7 @@ from security import authenticate, identity app = Flask(__name__) +app.config['PROPAGATE_EXCEPTIONS'] = True # To allow flask propagating exception even if debug is set to false on app app.secret_key = 'jose' api = Api(app)