From d63c187dcfa2180f0e17418876e2407f8541c69d Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 12 Mar 2009 21:33:43 +0000 Subject: [PATCH] Fix loading config files on Windows --- deluge/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/config.py b/deluge/config.py index 50d32cbae..afcd8ada7 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -243,7 +243,7 @@ class Config(object): self.__config.update(json.load(open(filename, "r"))) except Exception, e: try: - self.__config.update(pickle.load(open(filename, "rb"))) + self.__config.update(pickle.load(open(filename, "r"))) except Exception, e: log.warning("Unable to load config file: %s", filename)