Module: deluge
Branch: 1.3-stable
Commit: 5cfe3b56015053eb8a3a41839a9ab8cd5c342596

Author: Damien Churchill <[email protected]>
Date:   Wed Dec  1 10:21:26 2010 +0000

fix a bug that can occur when upgrading 1.1 config files

---

 deluge/config.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/deluge/config.py b/deluge/config.py
index 9fe5915..74406d2 100644
--- a/deluge/config.py
+++ b/deluge/config.py
@@ -259,7 +259,10 @@ what is currently in the config and it could not convert 
the value
 
         """
         if isinstance(self.__config[key], str):
-            return self.__config[key].decode("utf8")
+            try:
+                return self.__config[key].decode("utf8")
+            except UnicodeDecodeError:
+                return self.__config[key]
         else:
             return self.__config[key]
 

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to