From cc562a9fb111041bd56d1ef1ad3eae0df4f92fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 2 Nov 2016 16:49:18 +0100 Subject: [PATCH] Fix attachment rendering for nodes without description. --- pillar/web/nodes/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pillar/web/nodes/routes.py b/pillar/web/nodes/routes.py index d9d8f623..0fb40aed 100644 --- a/pillar/web/nodes/routes.py +++ b/pillar/web/nodes/routes.py @@ -260,7 +260,8 @@ def _view_handler_asset(node, template_path, template_action, link_allowed): # Treat it as normal file (zip, blend, application, etc) asset_type = 'file' - node['description'] = attachments.render_attachments(node, node['description']) + if 'description' in node: + node['description'] = attachments.render_attachments(node, node['description']) template_path = os.path.join(template_path, asset_type)