Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to check and exit on None detections #15

Open
robmarkcole opened this issue Feb 22, 2020 · 0 comments
Open

need to check and exit on None detections #15

robmarkcole opened this issue Feb 22, 2020 · 0 comments

Comments

@robmarkcole
Copy link
Owner

As reported on forums:

File “/config/custom_components/sighthound/image_processing.py”, line 112, in process_image
self.faces = hound.get_faces(detections)
File “/usr/local/lib/python3.7/site-packages/simplehound/core.py”, line 54, in get_faces
for obj in detections[“objects”]:
TypeError: ‘NoneType’ object is not subscriptable

Caused when detections is None and we are calling get_faces(). We need to check and exit on None detections

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

No branches or pull requests

1 participant