Skip to content
Permalink
Browse files
Fix #2489 -- don’t crash if a post list has no posts
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 31, 2016
1 parent 8434d32 commit 9122f1fb59703a561dc113f8d8fad1f680fe49f0
Showing 3 changed files with 9 additions and 1 deletion.
@@ -24,3 +24,6 @@ __pycache__/

# GitHub token
.pypt/gh-token

#
.DS_Store
@@ -1,6 +1,11 @@
New in master
=============

Bugfixes
--------

* Don’t crash if a post list has no posts (Issue #2489)

Features
--------

@@ -284,7 +284,7 @@ def _do_post_list(start=None, stop=None, reverse=False, tags=None, categories=No
posts += [post]

if not posts:
return ''
return '', []

template_deps = site.template_system.template_deps(template)
if state:

0 comments on commit 9122f1f

Please sign in to comment.