SABnzbd-Suite: correction of empty password

This commit is contained in:
queeup 2012-06-26 03:17:39 +03:00
parent bd0d310e13
commit 0b0247cb2a

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
# --------------------------