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)