Closed Bug 839451 Opened 13 years ago Closed 13 years ago

[traceback] KeyError when sending new_answer_to_asker emails

Categories

(support.mozilla.org :: Questions, task, P1)

Tracking

(Not tracked)

RESOLVED FIXED
2013Q1

People

(Reporter: willkg, Assigned: willkg)

Details

(Whiteboard: u=users c=questions p= s=2013.3)

Traceback (most recent call last): File "/data/www/support.mozilla.com/kitsune/vendor/src/celery/celery/execute/trace.py", line 181, in trace_task R = retval = fun(*args, **kwargs) File "/data/www/support.mozilla.com/kitsune/vendor/src/django-tidings/tidings/events.py", line 132, in _fire_task for m in self._mails(self._users_watching(exclude=exclude)): File "/data/www/support.mozilla.com/kitsune/apps/questions/events.py", line 94, in _mails msg = email_utils.render_email(template, c) File "/data/www/support.mozilla.com/kitsune/apps/sumo/email_utils.py", line 43, in render_email return jingo.render_to_string(req, template, context) File "/data/www/support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 93, in render_to_string return template.render(get_context()) File "/data/www/support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 189, in render return super(Template, self).render(context_dict) File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/support.mozilla.com/kitsune/apps/questions/templates/questions/email/new_answer_to_asker.ltxt", line 5, in top-level template code {{ _('{answerer} has posted an answer to your question on {host}:')|f(answerer=answerer, host=host) }} File "/data/www/support.mozilla.com/kitsune/vendor/src/jingo/jingo/helpers.py", line 26, in f return string.format(*args, **kwargs) KeyError: u'anwerer' At the time I'm writing this bug, there are two instances of this. Making this a P1 and putting it into this sprint.
The sentry entry (say that five times fast) is here: https://errormill.mozilla.org/support/group/14792/
This looks like a l10n issue to me. Is it?
(In reply to Ricky Rosario [:rrosario, :r1cky] from comment #2) > This looks like a l10n issue to me. Is it? as in somebody already translated it and typo'd. But that was just my first guess.
This is from celery, so I don't know offhand which locale is having the problem. But, yes, that was my current theory, too. I'll look through the strings in a bit.
Bingo. It's the German translation: locale/de/LC_MESSAGES/messages.po: #: apps/questions/templates/questions/email/new_answer_to_asker.ltxt:5 msgid "{answerer} has posted an answer to your question on {host}:" msgstr "{anwerer} hat eine Antwort auf Ihre Frage auf {host} geschrieben:"
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.