mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Convert unicode to str before saving to config. This should fix unicode
path issues.
This commit is contained in:
parent
42ca7b97bd
commit
f285f607cd
1 changed files with 2 additions and 0 deletions
|
@ -518,6 +518,8 @@ class Core(
|
|||
config = deluge.common.pythonize(config)
|
||||
# Load all the values into the configuration
|
||||
for key in config.keys():
|
||||
if isinstance(config[key], unicode) or isinstance(config[key], str):
|
||||
config[key] = config[key].encode("utf8")
|
||||
self.config[key] = config[key]
|
||||
|
||||
def export_get_listen_port(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue