From 4ae02a876433b60c12ad29de5672ebf5dd8b2846 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 6 Oct 2014 17:32:36 +0200 Subject: [PATCH] Don't write binary to configparser --- couchpotato/core/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/settings.py b/couchpotato/core/settings.py index c40e3e57..6830d591 100644 --- a/couchpotato/core/settings.py +++ b/couchpotato/core/settings.py @@ -1,5 +1,5 @@ from __future__ import with_statement -import ConfigParser + from hashlib import md5 from couchpotato.api import addApiView @@ -166,7 +166,7 @@ class Settings(object): return values def save(self): - with open(self.file, 'wb') as configfile: + with open(self.file, 'w') as configfile: self.p.write(configfile) self.log.debug('Saved settings')