mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix loading config files on Windows
This commit is contained in:
parent
01350e0060
commit
d63c187dcf
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class Config(object):
|
||||||
self.__config.update(json.load(open(filename, "r")))
|
self.__config.update(json.load(open(filename, "r")))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
try:
|
try:
|
||||||
self.__config.update(pickle.load(open(filename, "rb")))
|
self.__config.update(pickle.load(open(filename, "r")))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.warning("Unable to load config file: %s", filename)
|
log.warning("Unable to load config file: %s", filename)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue