mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +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
@ -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…
x
Reference in New Issue
Block a user