I have a urllib2 caching module, which sporadically crashes because of the following code:
if not os.path.exists(self.cache_location): os.mkdir(self.cach
When you have race conditions often EAFP(easier to ask forgiveness than permission) works better that LBYL(look before you leap)
Error checking strategies