This site is an archive; learn more about 8 years of OpenHatch.

[Devel] [Kaboom at OH] [celery at linode.openhatch.org] Error: Task mysite.search.tasks.LookAtOneFedoraBug (6574050f-dcc7-4cb6-b70b-78ae3ebf4df1): get() returned more than one Project -- it returned 5! Lookup parameters were {'name': 'xorg-x11-drv-intel'}

mr_website at linode.openhatch.org mr_website at linode.openhatch.org
Sun Feb 21 05:01:01 UTC 2010


Task mysite.search.tasks.LookAtOneFedoraBug with id 6574050f-dcc7-4cb6-b70b-78ae3ebf4df1 raised exception: get() returned more than one Project -- it returned 5! Lookup parameters were {'name': 'xorg-x11-drv-intel'}


Task was called with args:[] kwargs:{'bug_id': 510074}.
The contents of the full traceback was:

Traceback (most recent call last):

  File "/home/deploy/milestone-a.buildout/eggs/celery-0.6.0-py2.5.egg/celery/worker/job.py", line 84, in jail
    result = func(*args, **kwargs)

  File "/home/deploy/milestone-a.buildout/eggs/celery-0.6.0-py2.5.egg/celery/task/base.py", line 123, in __call__
    return self.run(*args, **kwargs)

  File "/home/deploy/milestone-a.buildout/mysite/search/tasks/__init__.py", line 148, in run
    mysite.customs.bugtrackers.fedora_fitfinish.reload_bug_obj(bug_obj)

  File "/home/deploy/milestone-a.buildout/mysite/customs/bugtrackers/fedora_fitfinish.py", line 33, in reload_bug_obj
    gen_project=project_finder_plugin)

  File "/home/deploy/milestone-a.buildout/mysite/customs/miro.py", line 74, in bug_elt2bug_dict
    project = gen_project(parsed)

  File "/home/deploy/milestone-a.buildout/mysite/customs/bugtrackers/fedora_fitfinish.py", line 16, in project_finder_plugin
    p, _ = mysite.search.models.Project.objects.get_or_create(name=component)

  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/manager.py", line 123, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)

  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/query.py", line 328, in get_or_create
    return self.get(**kwargs), False

  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/query.py", line 307, in get
    % (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one Project -- it returned 5! Lookup parameters were {'name': 'xorg-x11-drv-intel'}


-- 
Just thought I'd let you know!
celeryd at linode.openhatch.org.


More information about the Devel mailing list