Make the count a number because comparing NoneTypes and numbers isn't a thing in python 3.

This commit is contained in:
Feanil Patel
2019-11-06 15:58:03 -05:00
parent e863c50054
commit 733f6f8f24

View File

@@ -771,7 +771,7 @@ def _extract_missing_pii_annotations(filename):
2. A bool indicating whether the coverage is still below the threshold, and
3. The full report as a string.
"""
uncovered_models = None
uncovered_models = 0
pii_check_passed = True
if os.path.isfile(filename):
with io.open(filename, 'r') as report_file: