def _GetUserSecret(user):
 secret = secrets.GetSecret(_SecretName(user))
 if (not secret):
  raise LookupError('no secret has been created for {0}'.format(user))
 return secret

def _GetUserSecret ( user ) : secret = secrets . GetSecret ( _SecretName ( user ) ) if ( not secret ) : raise LookupError ( 'no secret has been created for {0}' . format ( user ) ) return secret
returns the user secret by consulting the secrets database .