Comment 0 for bug 964886

Revision history for this message
Eike (eike-welk) wrote :

When a bug task is removed from a project an exception is raised and the
program crashes. This is the traceback:

{{{
Traceback (most recent call last):
  File "/usr/local/bin/bsync", line 31, in <module>
    bsync.main()
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/main.py", line 120, in main
    self.do_sync(cmdinfo)
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/main.py", line 373, in do_sync
    syncer.synchronize_repos(sync_since, dry_run=False)
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/main.py", line 1211, in synchronize_repos
    self.write_bugs(write_tasks)
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/main.py", line 1131, in write_bugs
    new_ids = pipe.upload_queued_bugs()
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/main.py", line 1320, in upload_queued_bugs
    self.repo_controller.update_bugs(self.up_bugs, self.up_ids)
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/repo_io.py", line 968, in update_bugs
    lp_task = self.find_bug_task(lp_bug)
  File "/usr/local/lib/python2.7/site-packages/bug_repo_syncer/repo_io.py", line 921, in find_bug_task
    .format(id=lp_bug.id, proj=self.project.name))
KeyError: "Bug 936502 not in 'bug-repo-syncer'."
}}}