Catching TypeError too