code: def remove_file_no_raise(file_name, config):
      
      # The removal can be disabled by the config for debugging purposes.
      if config.keep_xml:
          return True
  
      try:
          if os.path.exists(file_name):
              os.remove(file_name)
      except IOError as error:
          loggers.root.error(
              "Error occurred while removing temporary created file('%s'): %s",
              file_name, str(error))
docs: Removes file from disk if exception is raised.