Fix #1967 : IndexError when trying to open a non-json conf file

This commit is contained in:
Calum Lind 2011-11-20 17:44:44 +00:00
parent b4a73cabf3
commit c29d3bb930
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ what is currently in the config and it could not convert the value
if self._save_timer and self._save_timer.active(): if self._save_timer and self._save_timer.active():
self._save_timer.cancel() self._save_timer.cancel()
return True return True
except IOError, e: except (IOError, IndexError), e:
log.warning("Unable to open config file: %s because: %s", filename, e) log.warning("Unable to open config file: %s because: %s", filename, e)
# Save the new config and make sure it's written to disk # Save the new config and make sure it's written to disk