mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
i18n: Fix some ineffective calls to ugettext at top level.
Translation has no effect when we don’t yet know what language we’re translating for. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
bba43f35ca
commit
f461a64a6b
@@ -142,7 +142,7 @@ def upgrade(request: HttpRequest, user: UserProfile,
|
||||
return json_error(e.message, data={'error_description': e.description})
|
||||
except Exception:
|
||||
billing_logger.exception("Uncaught exception in billing:", stack_info=True)
|
||||
error_message = BillingError.CONTACT_SUPPORT
|
||||
error_message = BillingError.CONTACT_SUPPORT.format(email=settings.ZULIP_ADMINISTRATOR)
|
||||
error_description = "uncaught exception during upgrade"
|
||||
return json_error(error_message, data={'error_description': error_description})
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user