Merge lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback2 into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 820
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback2
Merge into: lp:ubuntu-archive-tools
Diff against target: 13 lines (+3/-0)
1 file modified
phased-updater (+3/-0)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback2
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+210518@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

This fixes another traceback.

Traceback (most recent call last):
  File "/home/ubuntu-archive/ubuntu-archive-tools/phased-updater", line 605, in <module>
    main()
  File "/home/ubuntu-archive/ubuntu-archive-tools/phased-updater", line 571, in main
    generate_html_report(releases, issues)
  File "/home/ubuntu-archive/ubuntu-archive-tools/phased-updater", line 160, in generate_html_report
    buckets[rname][pub_source]['previous_pup']
KeyError: 'previous_pup'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'phased-updater'
2--- phased-updater 2014-03-11 19:09:56 +0000
3+++ phased-updater 2014-03-12 00:11:20 +0000
4@@ -563,6 +563,9 @@
5 if 'max_pup' in issues[rname][pub_source]:
6 issues[rname][pub_source]['previous_pup'] = \
7 issues[rname][pub_source]['max_pup']
8+ else:
9+ issues[rname][pub_source]['previous_pup'] = \
10+ current_pup
11 new_pup = 0
12 if (not options.no_act and
13 issues[rname][pub_source]['pup'] != 0):

Subscribers

People subscribed via source and target branches