def METHOD_NAME(object_error):
    """Given an error loading an object, returns True if it signals EOBJECTPROMISED."""
    return (
        isinstance(object_error, KeyError)
        and getattr(object_error, "subcode", 0) == LibgitSubcode.EOBJECTPROMISED
    )