Closed Bug 679009 Opened 14 years ago Closed 14 years ago

[traceback] IndexError: list index out of range

Categories

(addons.mozilla.org Graveyard :: Discovery Pane, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: cvan)

References

()

Details

steps to reproduce: 1. Add a 'Pick of the month' add-on at https://addons.allizom.org/z/en-US/admin/monthly-pick 2. Load https://addons.allizom.org/en-US/firefox/discovery/pane/5.0/Darwin traceback details: File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/amo_python/www/preview/zamboni/apps/discovery/views.py", line 52, in pane 'version': version, 'platform': platform}) File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 79, in render rendered = render_to_string(request, template, context) File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 97, 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/amo_python/www/preview/zamboni/apps/discovery/templates/discovery/pane.html", line 4, in top-level template code {% set app = request.APP.pretty %} File "/data/amo_python/www/preview/zamboni/apps/discovery/templates/discovery/base.html", line 22, in top-level template code {% block content %}{% endblock %} File "/data/amo_python/www/preview/zamboni/apps/discovery/templates/discovery/pane.html", line 41, in block "content" {% for module in modules %}{{ module.render() }}{% endfor %} File "/data/amo_python/www/preview/zamboni/apps/discovery/modules.py", line 54, in render c = dict(self.context()) File "/data/amo_python/www/preview/zamboni/apps/discovery/modules.py", line 76, in context pick = MP.objects.filter(locale__isnull=True)[0] File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/db/models/query.py", line 190, in __getitem__ return list(qs)[0] IndexError: list index out of range
Assignee: nobody → cwiemeersch
Blocks: 676307
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.