Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks authored Jan 24, 2018
2 parents d002522 + 1cd80d5 commit 3ea56ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm_panos/panos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3ea56ce

Please sign in to comment.