fix multiple typos #230

This commit is contained in:
clinton-hall 2014-01-08 10:55:47 +10:30
parent 18d10d28a6
commit ee6d6e62de
3 changed files with 26 additions and 26 deletions

View file

@ -30,18 +30,18 @@ def process(dirName, nzbName=None, status=0, inputCategory=None):
if inputCategory != None and config.has_section(inputCategory):
section = inputCategory
host = config.get(section., "host")
port = config.get(section., "port")
apikey = config.get(section., "apikey")
delay = float(config.get(section., "delay"))
host = config.get(section, "host")
port = config.get(section, "port")
apikey = config.get(section, "apikey")
delay = float(config.get(section, "delay"))
try:
ssl = int(config.get(section., "ssl"))
ssl = int(config.get(section, "ssl"))
except (ConfigParser.NoOptionError, ValueError):
ssl = 0
try:
web_root = config.get(section., "web_root")
web_root = config.get(section, "web_root")
except ConfigParser.NoOptionError:
web_root = ""