Closed
Bug 623152
Opened 15 years ago
Closed 15 years ago
[traceback] ValueError: unsupported format character '{' (0x7b) at index 33
Categories
(support.mozilla.org :: Localization, task)
support.mozilla.org
Localization
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephend, Unassigned)
References
()
Details
I'm guessing that this is a result of some l10n-fu gone awry, but I keep seeing its traceback...
https://master.support.mozilla.com/hr/users/login
http://support-stage.mozilla.com/hr/users/login
Traceback (most recent call last):
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/master.support.mozilla.com/kitsune/apps/sumo/decorators.py", line 15, in _checkssl
return view_func(request, *args, **kwargs)
File "/data/www/master.support.mozilla.com/kitsune/apps/users/views.py", line 39, in login
{'form': form, 'next_url': next_url})
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 78, in render
rendered = render_to_string(request, template, context)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string
return template.render(**get_context())
File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)
File "/data/www/master.support.mozilla.com/kitsune/apps/users/templates/users/login.html", line 5, in top-level template code
{% set classes = 'login' %}
File "/data/www/master.support.mozilla.com/kitsune/apps/users/templates/users/base.html", line 4, in top-level template code
{% set scripts = ('users',) %}
File "/data/www/master.support.mozilla.com/kitsune/apps/wiki/templates/wiki/base.html", line 12, in top-level template code
{% set top_link = url('home') %}
File "/data/www/master.support.mozilla.com/kitsune/apps/sumo/helpers.py", line 39, in url
return reverse(viewname, locale=locale, args=args, kwargs=kwargs)
File "/data/www/master.support.mozilla.com/kitsune/apps/sumo/urlresolvers.py", line 51, in reverse
url = django_reverse(viewname, urlconf, args, kwargs, prefix)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 351, in reverse
*args, **kwargs)))
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 272, in reverse
possibilities = self.reverse_dict.getlist(lookup_view)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 194, in _get_reverse_dict
self._populate()
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 173, in _populate
for name in pattern.reverse_dict:
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 194, in _get_reverse_dict
self._populate()
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 185, in _populate
lookups.appendlist(pattern.callback, (bits, p_pattern))
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 129, in _get_callback
self._callback = get_callable(self._callback_str)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/utils/functional.py", line 124, in wrapper
result = func(*args)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/core/urlresolvers.py", line 56, in get_callable
lookup_view = getattr(import_module(mod_name), func_name)
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/data/www/master.support.mozilla.com/kitsune/apps/gallery/views.py", line 18, in <module>
from gallery.forms import ImageForm, VideoForm
File "/data/www/master.support.mozilla.com/kitsune/apps/gallery/forms.py", line 59, in <module>
class ImageForm(forms.ModelForm):
File "/data/www/master.support.mozilla.com/kitsune/apps/gallery/forms.py", line 71, in ImageForm
help_text=TITLE_HELP_TEXT % {'type': u'Image'},
File "/data/www/master.support.mozilla.com/kitsune/vendor/src/django/django/utils/functional.py", line 227, in __mod__
return unicode(self) % rhs
ValueError: unsupported format character '{' (0x7b) at index 33
Comment 1•15 years ago
|
||
There's an identical error in Korean. I've emailed Kadir, who has hopefully gotten in touch with the localizers.
Component: Users and Groups → Localization
QA Contact: users → localization
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 2•15 years ago
|
||
Kadir, can you please link the SVN commits that fix this? (If you just type r#### where ### is the revision number, bugzilla will link it automatically.)
Comment 3•15 years ago
|
||
sure, just had to fix the locales because of duplicates though: R80277
| Reporter | ||
Comment 5•15 years ago
|
||
Verified FIXED on https://master.support.mozilla.com/hr/users/login.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•