From e336cd64b4781d7d20fb52b84cc5a246a33a9113 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 20 Nov 2011 17:44:44 +0000 Subject: Fix #1967 : IndexError when trying to open a non-json conf file --- deluge/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/config.py b/deluge/config.py index 74406d213..7539eb97e 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 -- cgit