mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
python: Convert translated positional {} fields to {named} fields.
Translators benefit from the extra information in the field names, and need the reordering freedom that isn’t available with multiple positional fields. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
db6323b2c4
commit
143baa4243
@@ -228,4 +228,6 @@ def unix_milliseconds_to_timestamp(milliseconds: Any, webhook: str) -> datetime:
|
||||
seconds = milliseconds / 1000
|
||||
return timestamp_to_datetime(seconds)
|
||||
except (ValueError, TypeError):
|
||||
raise JsonableError(_("The {} webhook expects time in milliseconds.").format(webhook))
|
||||
raise JsonableError(
|
||||
_("The {webhook} webhook expects time in milliseconds.").format(webhook=webhook)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user