@classmethod
def _get_or_raise_not_found_error(cls, ticket):
    key = _ExternalTask.get_key_by_ticket(ticket)
    task = db.get(key)
    if (not task):
        raise NotFoundError
    return task
@classmethod
def _get_or_raise_not_found_error(cls, ticket):
    key = _ExternalTask.get_key_by_ticket(ticket)
    task = db.get(key)
    if (not task):
        raise NotFoundError
    return task