Closed Bug 771706 Opened 12 years ago Closed 12 years ago

[traceback] task: reviews.models.add - spam.add: AttributeError: 'NoneType' object has no attribute 'add'

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
2012-07-19

People

(Reporter: andy+bugzilla, Assigned: cvan)

References

Details

Jul  6 15:46:41 celery2.dev.addons.phx1.mozilla.com: [][] z.celery:ERROR Celery TASK exception: AttributeError: 'NoneType' object has no attribute 'add' :/data/www/addons-dev.allizom.org/zamboni/vendor/src/nuggets/celeryutils.py:46#012Traceback (most recent call last):#012  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/nuggets/celeryutils.py", line 35, in wrapped#012    return fun(*args, **kw)#012  File "/data/www/addons-dev.allizom.org/zamboni/apps/reviews/models.py", line 209, in check_spam#012    spam.add(review, 'numbers')#012  File "/data/www/addons-dev.allizom.org/zamboni/apps/reviews/models.py", line 185, in add#012    reasonset.add(reason)#012AttributeError: 'NoneType' object has no attribute 'add'
Jul  6 15:46:42 celery2.dev.addons.phx1.mozilla.com: [][] celery:ERROR Task reviews.models.check_spam[ed79679d-2c3c-45b7-85b4-0bcb13f38a96] raised exception: AttributeError("'NoneType' object has no attribute 'add'",) :/data/www/addons-dev.allizom.org/zamboni/vendor/lib/python/celery/worker/job.py:393#012Traceback (most recent call last):#012  File "/data/www/addons-dev.allizom.org/zamboni/vendor/lib/python/celery/execute/trace.py", line 153, in trace_task#012    R = retval = task(*args, **kwargs)#012  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/nuggets/celeryutils.py", line 35, in wrapped#012    return fun(*args, **kw)#012  File "/data/www/addons-dev.allizom.org/zamboni/apps/reviews/models.py", line 209, in check_spam#012    spam.add(review, 'numbers')#012  File "/data/www/addons-dev.allizom.org/zamboni/apps/reviews/models.py", line 185, in add#012    reasonset.add(reason)#012AttributeError: 'NoneType' object has no attribute 'add'
My money's on https://github.com/mozilla/zamboni/commit/2d47491b
Blocks: 749335
OS: Mac OS X → All
Hardware: x86 → All
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "compat/views.py", line 61, in index
    usage_addons, usage_total = usage_stats(request, compat, app, binary)

  File "compat/views.py", line 108, in usage_stats
    return addons, CompatTotals.objects.get(app=app).total

NameError: global name 'CompatTotals' is not defined
Summary: [traceback] on check_spam → [traceback] NameError: global name 'CompatTotals' is not defined on check_spam
Assignee: nobody → xwraithanx
Component: Code Quality → Public Pages
Product: Marketplace → addons.mozilla.org
Target Milestone: --- → 2012-07-12
Priority: -- → P1
changed name to reflect andym's comment
Summary: [traceback] NameError: global name 'CompatTotals' is not defined on check_spam → task: reviews.models.add - spam.add: AttributeError: 'NoneType' object has no attribute 'add'
Summary: task: reviews.models.add - spam.add: AttributeError: 'NoneType' object has no attribute 'add' → [traceback] task: reviews.models.add - spam.add: AttributeError: 'NoneType' object has no attribute 'add'
Target Milestone: 2012-07-12 → 2012-07-19
https://github.com/mozilla/zamboni/commit/6cec953
Assignee: xwraithanx → cvan
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
no traceback upon flagging a review as spam
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.