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

[traceback] UnboundLocalError: local variable 'installed' referenced before assignment

RESOLVED FIXED in 2013-01-24

Status

Marketplace
Consumer Pages
--
blocker
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: krupa, Assigned: potch)

Tracking

2013-01-24
Points:
---

Details

(URL)

(Reporter)

Description

5 years ago
steps to reproduce:
load marketplace-dev homepage

traceback details:
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "mkt/home/views.py", line 45, in home
    'featured': featured,
  File "jingo/__init__.py", line 80, in render
    rendered = render_to_string(request, template, context)
  File "jingo/__init__.py", line 98, in render_to_string
    return template.render(**get_context())
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/addons-dev.allizom.org/zamboni/mkt/home/templates/home/home.html", line 6, in top-level template code
    {% set bodyclass = 'home' %}
  File "/data/www/addons-dev.allizom.org/zamboni/mkt/templates/mkt/base.html", line 1, in top-level template code
    {% extends 'mkt/base_mobile.html' if request.MOBILE and not request.TABLET else 'mkt/base_desktop.html' %}
  File "/data/www/addons-dev.allizom.org/zamboni/mkt/templates/mkt/base_mobile.html", line 133, in top-level template code
    {% block content %}
  File "/data/www/addons-dev.allizom.org/zamboni/mkt/home/templates/home/home.html", line 14, in block "content"
    {{- market_tile(app, src='mkt-home') -}}
  File "mkt/site/helpers.py", line 260, in market_tile
    return jinja2.Markup(t.render(c))
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/addons-dev.allizom.org/zamboni/mkt/site/templates/site/tiles/app.html", line 25, in top-level template code
    {{ market_button(product, classes=classes) }}
  File "mkt/site/helpers.py", line 95, in market_button
    if installed or purchased:
https://github.com/mozilla/zamboni/commit/ecf4233
Assignee: nobody → thepotch
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-01-24
You need to log in before you can comment on or make changes to this bug.