def _list_external_networks(self):
        try:
            search_opts = {'router:external': True}
            ext_nets = api.neutron.network_list(self.request,
                                                **search_opts)
            ext_net_dict = SortedDict((n['id'], n.name_or_id)
                                      for n in ext_nets)
        except Exception as e:
            msg = e % _('Unable to retrieve a list of external networks "%s".')
            exceptions.handle(self.request, msg)
            ext_net_dict = {}
        return ext_net_dict
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/routers/views.py/IndexView._list_external_networks/swapped operands of `%`