Skip to content

Commit

Permalink
Adding try catch to summary loop
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kukucka committed Jan 24, 2022
1 parent dd74a08 commit 7a307e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a307e7

Please sign in to comment.