#30 blockerbugs sync fails when a bug with empty 'needinfo' is part of sync set
Closed: Fixed None Opened 9 years ago by tflink.

blockerbugs sync is currently failing with:

Traceback (most recent call last):
  File "run_cli.py", line 5, in <module>
    exit = cli.main()
  File "/home/tflink/code/blockerbugs/blockerbugs/cli.py", line 209, in main
    sync_bugs(fullsync=options.full, docheck=options.check)
  File "/home/tflink/code/blockerbugs/blockerbugs/cli.py", line 158, in sync_bugs
    sync.update_active(full_sync=fullsync)
  File "/home/tflink/code/blockerbugs/blockerbugs/util/bug_sync.py", line 156, in update_active
    self.update_milestone(milestone, 'Blocker', last_sync_time)
  File "/home/tflink/code/blockerbugs/blockerbugs/util/bug_sync.py", line 101, in update_milestone
    newbuginfo = self.extract_information(newbug, tracker_type)
  File "/home/tflink/code/blockerbugs/blockerbugs/util/bug_sync.py", line 67, in extract_information
    needinfos.append(flag['requestee'])
KeyError: 'requestee'

The problem appears to be with a specific bug which has the needinfo flag set but not assigned to anyone (rhbz#1103496 in this particular case).

Fix sync so that it properly handles empty needinfo flags and make sure the display can handle this case as well.


This ticket had assigned some Differential requests:
D262

Login to comment on this ticket.

Metadata