Closed Bug 875091 Opened 11 years ago Closed 11 years ago

[traceback] AttributeError: 'NoneType' object has no attribute 'get_features' - Rejected apps 500 on `get_features`

Categories

(Marketplace Graveyard :: Developer Pages, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-06-06

People

(Reporter: robhudson, Assigned: mat)

Details

http://sentry.dmz.phx1.mozilla.com/addons/marketplace-dev/group/14248/

We're using `addon.current_version.get_features().to_list()` and rejected apps current_version is None.
Assignee: nobody → mpillard
Priority: -- → P2
Target Milestone: --- → 2013-05-30
mkt.developers.views in edit
AttributeError: 'NoneType' object has no attribute 'get_features'

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/api/object_wrapper.py", line 216, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/hooks/framework_django.py", line 475, in wrapper
    return wrapped(*args, **kwargs)
  File "amo/decorators.py", line 157, in wrapper
    return f(*args, **kw)
  File "amo/decorators.py", line 149, in wrapper
    return f(*args, **kw)
  File "python2.6/contextlib.py", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "amo/models.py", line 38, in skip_cache
    yield
  File "amo/decorators.py", line 149, in wrapper
    return f(*args, **kw)
  File "addons/decorators.py", line 33, in wrapper
    return f(request, addon, *args, **kw)
  File "amo/decorators.py", line 32, in wrapper
    return func(request, *args, **kw)
  File "mkt/developers/decorators.py", line 65, in wrapper
    return fun()
  File "mkt/developers/decorators.py", line 28, in <lambda>
    *args, **kw)
  File "mkt/developers/views.py", line 132, in edit
Summary: Rejected apps 500 on `get_features` → [traceback] AttributeError: 'NoneType' object has no attribute 'get_features' - Rejected apps 500 on `get_features`
Target Milestone: 2013-05-30 → ---
Target Milestone: --- → 2013-06-06
Fixed in https://github.com/mozilla/zamboni/commit/c25717501c505076f285dc987bd543bfb78a45d1

To reproduce, you need to disable/delete your latest available version so that your latest version either do not exist or is disabled/rejected/etc. Then go to the edit listing page, and it should be working with the features stuff hidden (*).

(*) requires waffle switch 'buchets' active to test.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.