fix get_object try clause