catch exception when --refresh is used and no cache file exists