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'."
}}}
When a bug task is removed from a project an exception is raised and the
program crashes. This is the traceback:
{{{ bin/bsync" , line 31, in <module> lib/python2. 7/site- packages/ bug_repo_ syncer/ main.py" , line 120, in main do_sync( cmdinfo) lib/python2. 7/site- packages/ bug_repo_ syncer/ main.py" , line 373, in do_sync synchronize_ repos(sync_ since, dry_run=False) lib/python2. 7/site- packages/ bug_repo_ syncer/ main.py" , line 1211, in synchronize_repos write_bugs( write_tasks) lib/python2. 7/site- packages/ bug_repo_ syncer/ main.py" , line 1131, in write_bugs queued_ bugs() lib/python2. 7/site- packages/ bug_repo_ syncer/ main.py" , line 1320, in upload_queued_bugs repo_controller .update_ bugs(self. up_bugs, self.up_ids) lib/python2. 7/site- packages/ bug_repo_ syncer/ repo_io. py", line 968, in update_bugs bug_task( lp_bug) lib/python2. 7/site- packages/ bug_repo_ syncer/ repo_io. py", line 921, in find_bug_task id=lp_bug. id, proj=self. project. name))
Traceback (most recent call last):
File "/usr/local/
bsync.main()
File "/usr/local/
self.
File "/usr/local/
syncer.
File "/usr/local/
self.
File "/usr/local/
new_ids = pipe.upload_
File "/usr/local/
self.
File "/usr/local/
lp_task = self.find_
File "/usr/local/
.format(
KeyError: "Bug 936502 not in 'bug-repo-syncer'."
}}}