Merge pull request #862 from queeup/updates

SABnzbd-Suite: correction of empty password for CouchPotato V2
This commit is contained in:
Stefan Saraev 2012-06-26 02:38:25 -07:00
commit a19e5f36dd

View File

@ -374,8 +374,12 @@ except Exception,e:
# CouchPotatoServer start
try:
#convert password to md5
md5pwd = hashlib.md5(pwd).hexdigest()
# empty password hack
if pwd == '':
md5pwd = ''
else:
#convert password to md5
md5pwd = hashlib.md5(str(pwd)).hexdigest()
# write CouchPotatoServer settings
# --------------------------