From 271e7ea917b8a93afa54578d49f3fdfaf4916c16 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 23 Jul 2010 19:14:28 -0400 Subject: [PATCH] Adjust tag hyperlinking to handle .tags == None --- cookbook/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/server.py b/cookbook/server.py index 28d1142..e62dd84 100644 --- a/cookbook/server.py +++ b/cookbook/server.py @@ -85,7 +85,7 @@ class Server (object): recipe = self.cookbook.index[name] tag_links = [ '%s' % (urlencode({'tag':t}), t) - for t in recipe.tags] + for t in (recipe.tags or [])] template = self.env.get_template('recipe.html') return template.render(cookbook=self.cookbook, recipe=recipe, tag_links=tag_links) -- 2.26.2