meeting import failed for lp update

Bug #815196 reported by Michael Hall on 2011-07-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Summit
High
James Westby

Bug Description

> python manage.py lpupdate uds-o
...
meeting qa-o-loco-laptop-testing-review
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/mhall/projects/Ubuntu/summit/dev/env/lib/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/home/mhall/projects/Ubuntu/summit/dev/env/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/mhall/projects/Ubuntu/summit/dev/env/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/mhall/projects/Ubuntu/summit/dev/env/lib/python2.6/site-packages/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/home/mhall/projects/Ubuntu/summit/dev/summit/../summit/schedule/management/commands/lpupdate.py", line 39, in handle
    summit.update_from_launchpad()
  File "/home/mhall/projects/Ubuntu/summit/dev/summit/../summit/schedule/models/summitmodel.py", line 187, in update_from_launchpad
    in_lp = set(self.meeting_set.filter(name__exact=m.get("name")[:50])[0] for m in tree.find("unscheduled").findall("meeting"))
  File "/home/mhall/projects/Ubuntu/summit/dev/summit/../summit/schedule/models/summitmodel.py", line 187, in <genexpr>
    in_lp = set(self.meeting_set.filter(name__exact=m.get("name")[:50])[0] for m in tree.find("unscheduled").findall("meeting"))
  File "/home/mhall/projects/Ubuntu/summit/dev/env/lib/python2.6/site-packages/django/db/models/query.py", line 160, in __getitem__
    return list(qs)[0]
IndexError: list index out of range

Michael Hall (mhall119) on 2011-07-23
Changed in summit:
status: New → Confirmed
importance: Undecided → High
James Westby (james-w) wrote :

I fixed this the other day when I found it while writing tests for another problem.

Thanks,

James

Changed in summit:
status: Confirmed → Fix Released
assignee: nobody → James Westby (james-w)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers