python: Remove unused arguments for translated format strings.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-07-17 15:51:14 -07:00 committed by Tim Abbott
parent b188e6fa04
commit db6323b2c4
2 changed files with 2 additions and 4 deletions

View File

@ -233,9 +233,7 @@ def update_plan(
)
if last_ledger_entry.licenses > licenses:
raise JsonableError(
_("You cannot decrease the licenses in the current billing period.").format(
licenses=licenses
)
_("You cannot decrease the licenses in the current billing period.")
)
validate_licenses(
plan.charge_automatically,

View File

@ -262,7 +262,7 @@ class HomepageForm(forms.Form):
_(
"Your email address, {email}, is not in one of the domains "
"that are allowed to register for accounts in this organization."
).format(string_id=realm.string_id, email=email)
).format(email=email)
)
except DisposableEmailError:
raise ValidationError(_("Please use your real email address."))