Skip to content

Commit

Permalink
Merge pull request #1 from liufuyang/master
Browse files Browse the repository at this point in the history
Allow flask propagate exceptions when debug=False
  • Loading branch information
jslvtr authored Feb 20, 2017
2 parents 58e9355 + 1955eca commit d2996fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions section4/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d2996fd

Please sign in to comment.