diff --git a/ckan/lib/jinja_extensions.py b/ckan/lib/jinja_extensions.py index 6fa3830c0be..a5a1a4605f4 100644 --- a/ckan/lib/jinja_extensions.py +++ b/ckan/lib/jinja_extensions.py @@ -93,6 +93,8 @@ def parse(self, parser): template_path = parser.filename # find where in the search path this template is from index = 0 + if not hasattr(self, 'searchpath'): + return node for searchpath in self.searchpath: if template_path.startswith(searchpath): break