Catch KeyError

This commit is contained in:
Damian Myerscough 2015-03-29 19:50:23 -07:00
parent 47d4772010
commit e69d434fcd

View File

@ -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