mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-03 23:23:27 +00:00
fix a bug that can occur when upgrading 1.1 config files
This commit is contained in:
parent
3d64f0d8da
commit
14ec9464aa
@ -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…
x
Reference in New Issue
Block a user