TypeError being thrown on vista instead of OSError.