mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Catch KeyError
This commit is contained in:
parent
47d4772010
commit
e69d434fcd
@ -115,7 +115,10 @@ def avail_images(call=None):
|
||||
ret[image['id']][item] = str(image[item])
|
||||
|
||||
page += 1
|
||||
fetch = 'next' in items['links']['pages']
|
||||
try:
|
||||
fetch = 'next' in items['links']['pages']
|
||||
except KeyError:
|
||||
fetch = False
|
||||
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user