From a7683152ecc55ebf42d086b49985d1ce91f9a2e8 Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Thu, 9 Jun 2022 09:14:25 +0200 Subject: [PATCH] i18n: removes incorrect mark for translation. * Refs: #415 --- invenio_accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_accounts/utils.py b/invenio_accounts/utils.py index 988088ca..5826b908 100644 --- a/invenio_accounts/utils.py +++ b/invenio_accounts/utils.py @@ -215,5 +215,5 @@ def validate_username(username): if not re.fullmatch(username_regex, username): # if validation fails, we raise a ValueError with the configured # text explaining the validation rules. - message = _(current_app.config["ACCOUNTS_USERNAME_RULES_TEXT"]) + message = current_app.config["ACCOUNTS_USERNAME_RULES_TEXT"] raise ValueError(message)