Closed
Bug 716993
Opened 13 years ago
Closed 12 years ago
[traceback] AttributeError while searching
Categories
(support.mozilla.org :: Search, defect)
support.mozilla.org
Search
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 721184
People
(Reporter: jsocol, Unassigned)
Details
Using recent production data and searching for "private browsing" I got the following error. I suspect the issue is that we indexed a document without a current_revision, which is legal, and it ended up in the result set, which it shouldn't. (Note that this is an AttributeError, so current_revision is None, not a DoesNotExist, which came up a couple times with this prod data during indexing.) Environment: Request Method: GET Request URL: https://support-local.allizom.org/en-US/search?e=es&q=private+browsing Django Version: 1.3 Python Version: 2.6.4 Traceback: File "/var/www/kitsune/vendor/src/django/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/var/www/kitsune/vendor/src/django-mobility/mobility/decorators.py" in wrapper 23. return f(request, *args, **kw) File "/var/www/kitsune/apps/search/views.py" in search 334. summary = doc.current_revision.summary Exception Type: AttributeError at /search Exception Value: 'NoneType' object has no attribute 'summary'
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•