- entries = [
- self.url_result('http://imgur.com/%s' % image['hash'])
- for image in album_images if image.get('hash')]
+ if len(album_img_data) == 0:
+ return self.url_result('http://imgur.com/%s' % album_id)
+ else:
+ album_images = album_img_data['images']
+ entries = [
+ self.url_result('http://imgur.com/%s' % image['hash'])
+ for image in album_images if image.get('hash')]