From 605361ec86d08a0dff2d0818d64ec5ee56fc9a34 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Fri, 30 Dec 2016 16:25:26 -0800 Subject: [PATCH] makemessages: Fix string with unnamed arguments in analytics/views.py. --- analytics/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analytics/views.py b/analytics/views.py index b0827aa92e..c32b74dcc0 100644 --- a/analytics/views.py +++ b/analytics/views.py @@ -57,7 +57,8 @@ def get_messages_sent_to_realm(realm, min_length=None, start=None, end=None): if end is None: end = timezone.now() if start > end: - raise JsonableError(_("Start time is later than end time. Start: %s, End: %s") % (start, end)) + raise JsonableError(_("Start time is later than end time. Start: %(start)s, End: %(end)s") % + {'start': start, 'end': end}) interval = CountStat.DAY end_times = time_range(start, end, interval, min_length) indices = {}