Vision sensor issues

Whenever I use the vision sensor I get this error


And when I look in the python thing there isnt a line 169
Here’s a picture of the code

Every time you use take snapshot you need to check it has returned an object (ie. Object exists) before trying to use it.