If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[traceback] /ko/about Error KeyError: u'locale'

VERIFIED FIXED

Status

Participation Infrastructure
Phonebook
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: mbrandt, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

5 years ago
Steps to reproduce:
0. Goto /ko/about on dev/stage/prod

Actual:
Traceback (most recent call last):

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/views/generic/simple.py", line 28, in direct_to_template
    return HttpResponse(t.render(c), content_type=mimetype)

  File "/data/www/mozillians.org/mozillians/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/mozillians.org/mozillians/apps/phonebook/templates/phonebook/about.html", line 7, in top-level template code
    {% set nav_about = 'active' %}

  File "/data/www/mozillians.org/mozillians/templates/base.html", line 139, in top-level template code
    {% block main_content %}{% endblock %}

  File "/data/www/mozillians.org/mozillians/apps/phonebook/templates/phonebook/about.html", line 46, in block "main_content"
    {% trans privacy_policy_url=('http://www.mozilla.org/'

  File "/usr/lib64/python2.6/site-packages/jinja2/_markupsafe/__init__.py", line 98, in __mod__
    return self.__class__(unicode.__mod__(self, arg))

  File "/usr/lib64/python2.6/site-packages/jinja2/_markupsafe/__init__.py", line 212, in <lambda>
    __getitem__ = lambda s, x: _MarkupEscapeHelper(s.obj[x])

KeyError: u'locale'
(Reporter)

Comment 1

5 years ago
A bit more context - this is being triggered by  
'HTTP_FROM': 'googlebot(at)googlebot.com', who seems to really like us. I'm seeing quite a few of these tracebacks.
Milos can you please take a look on that? Seems that the Korean translation is outdated, which causes a 500.

Thanks!
Flags: needinfo?(milos)

Comment 3

5 years ago
Giorgos, I fixed one key, let's see if this work. If so, please close the bug.
Flags: needinfo?(milos)
Looks good, thnx!
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

5 years ago
Wicked-good! Thank you Milos! QA verified on dev/stage/prod
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.