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.GrabMiroBugs (1b472068-fabf-4e86-808b-69d49795a01d): global name 'bug_elt' is not defined

Asheesh Laroia asheesh at openhatch.org
Thu Nov 19 03:39:01 UTC 2009


Excerpts from mr_website's message of Thu Nov 19 02:44:07 UTC 2009:
> Task mysite.search.tasks.GrabMiroBugs with id
> 1b472068-fabf-4e86-808b-69d49795a01d raised exception: global name 'bug_elt' is
> not defined
> 
> 
> Task was called with args:[] 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/search/tasks/__init__.py",
> line 26, in run
>     mysite.customs.miro.grab_miro_bugs()
> 
>   File "/home/deploy/milestone-a.buildout/mysite/customs/miro.py", line 128, in
> grab_miro_bugs
>     xml_fd = open_xml_url(xml_url)
> 
>   File "/home/deploy/milestone-a.buildout/mysite/customs/miro.py", line 53, in
> xml2bug_object
>     bug_elt, = parsed.xpath('bug') # The comma asserts that the xpath() returns
> a list of length 1
> 
> NameError: global name 'bug_elt' is not defined
> 

Should be fixed now.


More information about the Devel mailing list