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: if last_ledger_entry.licenses > licenses:
raise JsonableError( raise JsonableError(
_("You cannot decrease the licenses in the current billing period.").format( _("You cannot decrease the licenses in the current billing period.")
licenses=licenses
)
) )
validate_licenses( validate_licenses(
plan.charge_automatically, plan.charge_automatically,

View File

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