

@memoized.memoized_method
def _get_object(self, *args, **kwargs):
    subnet_id = self.kwargs['subnet_id']
    try:
        return api.neutron.subnet_get(self.request, subnet_id)
    except Exception:
        redirect = reverse('horizon:project:networks:index')
        msg = _('Unable to retrieve subnet details')
        exceptions.handle(self.request, msg, redirect=redirect)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/networks/subnets/views.py UpdateView._get_object/original