# Path: errors.py
# class NoSuchSecret(Exception):
#     pass
# 
# Path: models/secret.py
# class Secret(ndb.Model):
#     value = ndb.StringProperty()


from errors import NoSuchSecret
from models import Secret
# -*- coding: utf-8 -*-


def get_secret(id):
    secret = Secret.get_by_id(id)
    if secret:

# Path: errors.py
# class NoSuchSecret(Exception):
#     pass
# 
# Path: models/secret.py
# class Secret(ndb.Model):
#     value = ndb.StringProperty()


# Path: logic/secret.py
from errors import NoSuchSecret
from models import Secret

# -*- coding: utf-8 -*-


def get_secret(id):
    secret = Secret.get_by_id(id)
    if secret:

        return secret.value