Module: deluge Branch: master Commit: 14ec9464aa72c9f8921b2a8ec9738b24b6dfd6ec
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.
