(cls, doc_id)
Returns an unwrapped document if it exists, or raises `DocumentNotFound` if not
Returns an unwrapped document if it exists, or raises `DocumentNotFound` if not
Returns an unwrapped document if it exists or raises DocumentNotFound if not
def _get_document_or_not_found_lite(cls, doc_id):
    """
    Returns an unwrapped document if it exists, or raises `DocumentNotFound` if not
    """
    try:
        return cls.get_db().get(doc_id)
    except ResourceNotFound:
        raise DocumentNotFound("Document {} of class {} not found!".format(
            doc_id,
            cls.__name__
        ))
def _get_document_or_not_found_lite ( cls , doc_id ) : try : return cls . get_db ( ) . get ( doc_id ) except ResourceNotFound : raise DocumentNotFound ( "Document {} of class {} not found!" . format ( doc_id , cls . __name__ ) )