Getting "Accessed None" error and I'm not sure what the cause is

I just fixed 20,000 errors i had by using, is valid check! thanks a million!
=)
-Samuelb