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

[Devel] [Kaboom at OH] [celery at linode.openhatch.org] Error: Task profile.FetchPersonDataFromOhloh (5cdbc2f2-babf-46bc-8c0a-ac52a4448989): get() returned more than one Project -- it returned 2! Lookup parameters were {'name': 'gnash'}

mr_website at linode.openhatch.org mr_website at linode.openhatch.org
Sun Jan 31 02:23:31 UTC 2010


Task profile.FetchPersonDataFromOhloh with id 5cdbc2f2-babf-46bc-8c0a-ac52a4448989 raised exception: get() returned more than one Project -- it returned 2! Lookup parameters were {'name': 'gnash'}


Task was called with args:(2627L,) kwargs:{}.
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/profile/tasks/__init__.py", line 269, in run
    source2result_handler[dia.source](dia.id, results)

  File "/home/deploy/milestone-a.buildout/mysite/profile/tasks/__init__.py", line 66, in create_citations_from_launchpad_results
    (project, _) = Project.objects.get_or_create(name=project_name)

  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 2! Lookup parameters were {'name': 'gnash'}


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


More information about the Devel mailing list