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

RESOLVED FIXED in 2013-06-06

Status

P2
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: robhudson, Assigned: mat)

Tracking

2013-06-06
x86
Mac OS X
Points:
---

Details

(Reporter)

Description

6 years ago
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 → ---
(Assignee)

Updated

6 years ago
Target Milestone: --- → 2013-06-06
(Assignee)

Comment 3

6 years ago
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
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.