From 7a307e7fb47391e3ee974086765821aa1b3b1743 Mon Sep 17 00:00:00 2001 From: James Kukucka Date: Mon, 24 Jan 2022 12:51:47 -0500 Subject: [PATCH] Adding try catch to summary loop --- scripts/unique.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/unique.py b/scripts/unique.py index d7feb3a..cece233 100755 --- a/scripts/unique.py +++ b/scripts/unique.py @@ -100,7 +100,12 @@ # Print out information about bugs for each project for project in projects: i=0 - print("Found %d unique bugs for project %s" % (len(bugs[project]), project)) + try: + print("Found %d unique bugs for project %s" % (len(bugs[project]), project)) + except KeyError: + print("Found 0 unique bugs for project %s" % (project)) + continue + for b,fs in bugs[project].items(): i += 1 cwd = os.path.join(outputdir,project,b)