diff --git a/progit/ui/app.py b/progit/ui/app.py index 91047be..b85c879 100644 --- a/progit/ui/app.py +++ b/progit/ui/app.py @@ -288,6 +288,8 @@ def user_settings(): """ user = progit.lib.search_user( SESSION, username=flask.g.fas_user.username) + if not user: + flask.abort(404, 'User not found') form = progit.forms.UserSettingsForm() if form.validate_on_submit():