Skip to content

Commit

Permalink
Forgot to test whether deps_translatable is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored and Kwpolska committed Dec 21, 2014
1 parent 241de65 commit 0c4e8b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nikola/plugins/task/archive.py
Expand Up @@ -81,6 +81,9 @@ def _generate_posts_task(self, kw, name, lang, posts, title, deps_translatable=N
posts = sorted(posts, key=lambda a: a.date)
posts.reverse()
if kw['archives_are_indexes']:
uptodate = []
if deps_translatable is not None:
uptodate += [config_changed(deps_translatable, 'nikola.plugins.task.archive')]
yield self.site.generic_index_renderer(
lang,
posts,
Expand All @@ -91,7 +94,7 @@ def _generate_posts_task(self, kw, name, lang, posts, title, deps_translatable=N
str(self.name),
lambda i, num_pages: adjust_name_for_index(self.site.link("archive", name, lang), i, kw['index_file']),
lambda i, num_pages: adjust_name_for_index(self.site.path("archive", name, lang), i, kw['index_file']),
[config_changed(deps_translatable, 'nikola.plugins.task.archive')])
uptodate)
else:
yield self._prepare_task(kw, name, lang, posts, None, "list_post.tmpl", title, deps_translatable)

Expand Down

0 comments on commit 0c4e8b6

Please sign in to comment.