Skip to content

Commit

Permalink
Set PROPAGATE_EXCEPTIONS = True
Browse files Browse the repository at this point in the history
refs #20
  • Loading branch information
vimalloc committed Dec 15, 2016
1 parent f8ffc4d commit 46c1b9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flask_jwt_extended/jwt_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ def init_app(self, app):
"""
Register this extension with the flask app
"""
# Save this so we can use it later in the extension
app.jwt_manager = self

# Set propagate exceptions, so all of these error handlers properly
# work in production
app.config['PROPAGATE_EXCEPTIONS'] = True

@app.errorhandler(NoAuthorizationError)
def handle_auth_error(e):
return self._unauthorized_callback(str(e))
Expand Down

0 comments on commit 46c1b9b

Please sign in to comment.