Catch NoneType errors

If yards is a NoneType we need to catch a TypeError as well and set the value to 0 just as the ValueError does