Skip to content
Permalink
Browse files

handle empty galleries

  • Loading branch information
ralsina committed Oct 31, 2015
1 parent 8ef82c2 commit 2a09ede44d74394421ce25a466a1df3fdc22c0ab
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/plugins/task/galleries.py
@@ -558,7 +558,10 @@ def url_from_path(p):
else: # Sort by name
all_data.sort(key=lambda a: a[0])

img_list, thumbs, img_titles = zip(*all_data)
if all_data:
img_list, thumbs, img_titles = zip(*all_data)
else:
img_list, thumbs, img_titles = [], [], []

photo_array = []
for img, thumb, title in zip(img_list, thumbs, img_titles):

0 comments on commit 2a09ede

Please sign in to comment.
You can’t perform that action at this time.