Commit c5f5546a by lwilms

devision by zero

parent f3002369
......@@ -119,6 +119,8 @@ def _count_mitigations(summary):
count = _count_this_mitigation(summary, mitigation)
if count != 0:
return count
if count == 0:
count = 1
return count
......@@ -127,8 +129,6 @@ def _count_this_mitigation(summary, mitigation):
for selected_summary in summary:
if mitigation in selected_summary:
count += len(summary[selected_summary])
if count == 0:
count = 1
return count
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment