Removed the following line, since the test will never be false:

if config.has_option("Input", "featuresets"):