summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-11-20 17:44:44 (GMT)
committer Calum Lind <calumlind+deluge@gmail.com>2011-11-20 18:00:19 (GMT)
commite336cd64b4781d7d20fb52b84cc5a246a33a9113 (patch)
treeab960488f679ec38339fb6c3786271501f96b835
parenteff3577505187e3a7c668956c48bee31a787a649 (diff)
downloaddeluge-e336cd64b4781d7d20fb52b84cc5a246a33a9113.zip
deluge-e336cd64b4781d7d20fb52b84cc5a246a33a9113.tar.gz
deluge-e336cd64b4781d7d20fb52b84cc5a246a33a9113.tar.bz2
Fix #1967 : IndexError when trying to open a non-json conf file
-rw-r--r--deluge/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/config.py b/deluge/config.py
index 74406d2..7539eb9 100644
--- a/deluge/config.py
+++ b/deluge/config.py
@@ -415,7 +415,7 @@ what is currently in the config and it could not convert the value
if self._save_timer and self._save_timer.active():
self._save_timer.cancel()
return True
- except IOError, e:
+ except (IOError, IndexError), 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