parameters: (cmd, target)
docstring: Run the command to download target.
  
      If the command fails, clean up before re-raising the error.
docstring_summary: Run the command to download target.
docstring_tokens: Run the command to download target .
function: def _clean_check(cmd, target):
      """
      Run the command to download target.
  
      If the command fails, clean up before re-raising the error.
      """
      try:
          subprocess.check_call(cmd)
      except subprocess.CalledProcessError:
          if os.access(target, os.F_OK):
              os.unlink(target)
          raise
function_tokens: def _clean_check ( cmd , target ) : try : subprocess . check_call ( cmd ) except subprocess . CalledProcessError : if os . access ( target , os . F_OK ) : os . unlink ( target ) raise