Don't write binary to configparser
This commit is contained in:
1 parent
cc59342e80
commit
4ae02a8764
1 file changed
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import ConfigParser
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
|
|
||||||
from couchpotato.api import addApiView
|
from couchpotato.api import addApiView
|
||||||
@@ -166,7 +166,7 @@ class Settings(object):
|
|||||||
return values
|
return values
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
with open(self.file, 'wb') as configfile:
|
with open(self.file, 'w') as configfile:
|
||||||
self.p.write(configfile)
|
self.p.write(configfile)
|
||||||
|
|
||||||
self.log.debug('Saved settings')
|
self.log.debug('Saved settings')
|
||||||
|
|||||||
Reference in new issue
Block a user