Skip to content

Conversation

@Jhruzik
Copy link

@Jhruzik Jhruzik commented Aug 29, 2020

Whenever the detect_faces function encounters an error inside the for loop, it might happen that it gets stuck in the wrong directory. As soon as the loop reaches the next iteration, it can't find the correct data since it is in the wrong directory.

This PR introduces a try-except clause which makes sure, that it is inside the correct directors after every iteration.

Also, I fixed the indentation.

Added robustness and fixed indentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant