diff --git a/comment.py b/comment.py index 99e34e0..9fc97d4 100755 --- a/comment.py +++ b/comment.py @@ -50,10 +50,11 @@ config = configparser.ConfigParser(allow_no_value=True) config.read('server.cfg') # set up each hog device -for name in config.get('network', 'hogs').split(',').strip('\"'): +for name in config.get('network', 'hogs').split(','): try: # move to config section server = config[name] + server = config[name.strip().strip('\"')] # read settings ip = server.get("ip", "10.0.0.100") port = server.getint("port", 7001)