def parse_configfile(configfile):
with open(configfile) as f:<EOL><INDENT>try:<EOL><INDENT>return yaml.safe_load(f)<EOL><DEDENT>except Exception as e:<EOL><INDENT>logging.fatal("<STR_LIT>", e)<EOL>exit(-<NUM_LIT:1>)<EOL><DEDENT><DEDENT>
Read settings from file
:param configfile: