Catch the type error when the local cache is none