def get_user_settings(user_id, strict=False):
 user_settings = get_users_settings([user_id])[0]
 if (strict and (user_settings is None)):
  logging.error(('Could not find user with id %s' % user_id))
  raise Exception('User not found.')
 return user_settings

def get_user_settings ( user_id , strict = False ) : user_settings = get_users_settings ( [ user_id ] ) [ 0 ] if ( strict and ( user_settings is None ) ) : logging . error ( ( 'Could not find user with id %s' % user_id ) ) raise Exception ( 'User not found.' ) return user_settings
return the user settings for a single user .