From f188c944ba22cac56176187d35547ef5c84b6cd8 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Thu, 3 Feb 2011 15:49:49 +0530 Subject: [PATCH] Fixed a bug where dependency path is empty --- hyde/ext/templates/jinja.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hyde/ext/templates/jinja.py b/hyde/ext/templates/jinja.py index f70d74a..a9be6dd 100644 --- a/hyde/ext/templates/jinja.py +++ b/hyde/ext/templates/jinja.py @@ -404,8 +404,9 @@ class Jinja2Template(Template): tpls = find_referenced_templates(ast) deps = [] for dep in tpls: - deps.append(dep) - deps.extend(self.get_dependencies(dep)) + if dep: + deps.append(dep) + deps.extend(self.get_dependencies(dep)) return list(set(deps)) @property