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