From baa8c871b08b14fd26145a66fad6db3ca4fdd27f Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 8 Jan 2022 01:47:25 +0000 Subject: [PATCH] Fix crash on unimported gettext --- app/__init__.py | 2 +- app/blueprints/users/account.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index aa8b8418..5a1000db 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -21,7 +21,7 @@ from flask_mail import Mail from flask_github import GitHub from flask_wtf.csrf import CSRFProtect from flask_flatpages import FlatPages -from flask_babel import Babel +from flask_babel import Babel, gettext from flask_login import logout_user, current_user, LoginManager import os, redis from app.markdown import init_markdown, MARKDOWN_EXTENSIONS, MARKDOWN_EXTENSION_CONFIG diff --git a/app/blueprints/users/account.py b/app/blueprints/users/account.py index 5679c9cf..0c1070de 100644 --- a/app/blueprints/users/account.py +++ b/app/blueprints/users/account.py @@ -248,7 +248,7 @@ def handle_set_password(form): one = form.password.data two = form.password2.data if one != two: - flash(gettext("Passwords do not much"), "danger") + flash(gettext("Passwords do not match"), "danger") return addAuditLog(AuditSeverity.USER, current_user, "Changed their password", url_for("users.profile", username=current_user.username))