def get_repository(client, repository=''):
 try:
  return client.snapshot.get_repository(repository=repository)
 except (elasticsearch.TransportError, elasticsearch.NotFoundError):
  logger.error('Repository {0} not found.'.format(repository))
  return False

def get_repository ( client , repository = '' ) : try : return client . snapshot . get_repository ( repository = repository ) except ( elasticsearch . TransportError , elasticsearch . NotFoundError ) : logger . error ( 'Repository {0} not found.' . format ( repository ) ) return False
return configuration information for the indicated repository .