mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix a bug that can occur when upgrading 1.1 config files
This commit is contained in:
parent
1067eb7f98
commit
5cfe3b5601
1 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue