Describe the bug
When running the tool on a directory without images or PDF files, an UnboundLocalError is raised because the variable contains_faces has not been initialized. I believe that adding contains_faces = 0 at the beginning of the search_pii(file_path) function will solve the issue.
Describe the bug When running the tool on a directory without images or PDF files, an
UnboundLocalError
is raised because the variablecontains_faces
has not been initialized. I believe that addingcontains_faces = 0
at the beginning of thesearch_pii(file_path)
function will solve the issue.To Reproduce Steps to reproduce the behavior:
dir
only with text filespython3 octopii.py dir/
Expected behavior Octopii runs successfully