

def handle(self, request, context):
    url = reverse('horizon:project:network_policy:index')
    try:
        external_connectivity_id = self.initial['external_connectivity_id']
        client.update_externalconnectivity(request, external_connectivity_id, **context)
        msg = _('External Connectivity updated successfully!')
        LOG.debug(msg)
        return http.HttpResponseRedirect(url)
    except Exception as e:
        msg = (_('Failed to update External Connectivity.%s') % str(external_connectivity_id))
        LOG.error(msg)
        exceptions.handle(request, msg, redirect=shortcuts.redirect)

dataset/ETHPy150Open openstack/group-based-policy-ui/gbpui/panels/network_policy/forms.py UpdateExternalConnectivityForm.handle/VarMisuse@86/141 `e`->`external_connectivity_id`