From 6dd841dd4025a179aad73c83d14fe336b6bbe903 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 24 Sep 2016 14:11:17 +0200 Subject: reproducible Debian: more mampers (tm) for unicode date from popcon for the notes job --- bin/reproducible_html_notes.py | 19 +++++++++++-------- 1 file 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]) -- cgit v1.2.3-70-g09d2