Closed
Bug 944723
Opened 11 years ago
Closed 11 years ago
[traceback] AttributeError: 'NoneType' object has no attribute 'isdigit'
Categories
(Marketplace Graveyard :: API, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
2013-12-03
People
(Reporter: mat, Assigned: mat)
Details
STR:
- Log in with admin rights
- Try to see an app that is not available in your region
(For reference: it happened to me on stage with https://marketplace.allizom.org/app/pricetier2 in worldwide region - the corresponding error in sentry is http://sentry.dmz.phx1.mozilla.com/addons/marketplace-stage/group/17249/ )
Expected results:
- See the app
Actual results:
- "Oh noes", with the API returning a 500 error for the app. The traceback:
AttributeError: 'NoneType' object has no attribute 'isdigit'
Stacktrace (most recent call last):
File "rest_framework/views.py", line 396, in dispatch
response = handler(request, *args, **kwargs)
File "rest_framework/mixins.py", line 104, in retrieve
self.object = self.get_object()
File "mkt/webapps/api.py", line 424, in get_object
app = super(AppViewSet, self).get_object(self.get_base_queryset())
File "mkt/api/base.py", line 567, in get_object
if 'pk' in self.kwargs and not self.kwargs['pk'].isdigit():
Assignee | ||
Comment 1•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 2•11 years ago
|
||
Verified as fixed : http://screencast.com/t/pOPohZSRwPp
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•