def remove_file_no_raise(file_name, config):
<EOL>if config.keep_xml:<EOL><INDENT>return True<EOL><DEDENT>try:<EOL><INDENT>if os.path.exists(file_name):<EOL><INDENT>os.remove(file_name)<EOL><DEDENT><DEDENT>except IOError as error:<EOL><INDENT>loggers.root.error(<EOL>"<STR_LIT>",<EOL>file_name, str(error))<EOL><DEDENT>
Removes file from disk if exception is raised.