diff --git a/napalm_panos/panos.py b/napalm_panos/panos.py index cf504d6..d0e4ac4 100644 --- a/napalm_panos/panos.py +++ b/napalm_panos/panos.py @@ -443,7 +443,7 @@ def get_route_to(self, destination='', protocol=''): routes_table_xml = xmltodict.parse(self.device.xml_root()) routes_table_json = json.dumps(routes_table_xml['response']['result']['entry']) routes_table = json.loads(routes_table_json) - except AttributeError: + except (AttributeError, KeyError): routes_table = [] if isinstance(routes_table, dict):