catch TypeError and test
Merge pull request #12 from fiddyspence/bug/ignore_type_error

TypeError and test