handle IOError on local_settings