Skip to content

Commit d2996fd

Browse files
authored
Merge pull request #1 from liufuyang/master
Allow flask propagate exceptions when debug=False
2 parents 58e9355 + 1955eca commit d2996fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

section4/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from security import authenticate, identity
66

77
app = Flask(__name__)
8+
app.config['PROPAGATE_EXCEPTIONS'] = True # To allow flask propagating exception even if debug is set to false on app
89
app.secret_key = 'jose'
910
api = Api(app)
1011

0 commit comments

Comments
 (0)