Fixing KeyError

This commit is contained in:
Damian Myerscough 2015-03-27 22:45:25 -07:00 committed by rallytime
parent 6b2cda2861
commit 306b1ea6b8

View File

@ -200,7 +200,10 @@ def list_nodes_full(call=None, forOutput=True):
value = str(value)
ret[node['name']][item] = value
page += 1
try:
fetch = 'next' in items['links']['pages']
except KeyError:
fetch = False
return ret