Skip to content

Commit 46c1b9b

Browse files
committed
Set PROPAGATE_EXCEPTIONS = True
refs #20
1 parent f8ffc4d commit 46c1b9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flask_jwt_extended/jwt_manager.py

+5
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ def init_app(self, app):
5050
"""
5151
Register this extension with the flask app
5252
"""
53+
# Save this so we can use it later in the extension
5354
app.jwt_manager = self
5455

56+
# Set propagate exceptions, so all of these error handlers properly
57+
# work in production
58+
app.config['PROPAGATE_EXCEPTIONS'] = True
59+
5560
@app.errorhandler(NoAuthorizationError)
5661
def handle_auth_error(e):
5762
return self._unauthorized_callback(str(e))

0 commit comments

Comments
 (0)