summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_notes.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_html_notes.py')
-rwxr-xr-xbin/reproducible_html_notes.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index b6b6f103..01c7a516 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -224,9 +224,12 @@ def gen_html_issue(issue):
url = ''
# add affected packages:
affected = ''
- for pkg in sorted(issues_count[issue]):
- affected += tab*6 + '<a href="%s/%s.html" class="noted">%s</a>\n' % (
- RB_PKG_URI, pkg, pkg)
+ try:
+ for pkg in sorted(issues_count[issue]):
+ affected += tab*6 + '<a href="%s/%s.html" class="noted">%s</a>\n' \
+ % (RB_PKG_URI, pkg, pkg)
+ except KeyError: # The note is not listed in any package, that is
+ affected = '<i>None</i>'
# check for description:
try:
desc = issues[issue]['description']