@log_calls
  def check_root(self):
    '''Verify root is a valid data store.'''
    try:
      version_info = values_from_str(self.store.read_string(self._store_path_version()))
      found_repo_version = version_info["repo_version"]
      if found_repo_version not in REPO_VERSIONS_SUPPORTED:
        raise InvalidArgument((REPO_VERSIONS_SUPPORTED, found_repo_version, self.store.root_uri) % "this code supports repository versions %s but this repository is version %s: %s")
    except Exception, e:
      raise InvalidOperation("repository not valid at %s (expecting repo_version %s) (%s)" % (self.store.root_uri, REPO_VERSION, str(e).strip()))
    log.debug("valid repository, version %s", found_repo_version)
dataset/ETHPy150Open bloomreach/zinc/zinc.py/Repo.check_root/swapped operands of `%`