diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-09-24 14:11:17 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-09-24 14:11:17 +0200 |
commit | 6dd841dd4025a179aad73c83d14fe336b6bbe903 (patch) | |
tree | 980e495c46141cf674aeb40d97187a02235a4ba8 | |
parent | a90056a2dd0cafe37baea1cacfc37f091b2be8e6 (diff) | |
download | jenkins.debian.net-6dd841dd4025a179aad73c83d14fe336b6bbe903.tar.xz |
reproducible Debian: more mampers (tm) for unicode date from popcon for the notes job
-rwxr-xr-x | bin/reproducible_html_notes.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 7d1010f6..63e94adf 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -467,14 +467,17 @@ if __name__ == '__main__': issues = load_issues() iterate_over_notes(notes) iterate_over_issues(issues) - index_issues(issues, OrderedDict([ - ("Sum of packages' popcon scores", - lambda l: sum(popcon.package(*l).values())), - ("Sum of square-roots of packages' popcon scores", - lambda l: int(sum(map(sqrt, popcon.package(*l).values())))), - ("Number of packages", - len), - ])) + try: + index_issues(issues, OrderedDict([ + ("Sum of packages' popcon scores", + lambda l: sum(popcon.package(*l).values())), + ("Sum of square-roots of packages' popcon scores", + lambda l: int(sum(map(sqrt, popcon.package(*l).values())))), + ("Number of packages", + len), + ])) + except UnicodeDecodeError: + pass purge_old_notes(notes) purge_old_issues(issues) gen_packages_html([Package(x) for x in notes]) |