Catch the type error when the local cache is none
Merge pull request #1 from seatme/fix/none_crash

Catch the type error when the local cache is none