diff --git a/ckan/lib/render.py b/ckan/lib/render.py index c22c35680d1..c89ebc6c334 100644 --- a/ckan/lib/render.py +++ b/ckan/lib/render.py @@ -5,6 +5,7 @@ import logging from ckan.common import config +from jinja2.exceptions import TemplateNotFound log = logging.getLogger(__name__) @@ -25,9 +26,6 @@ def find_template(template_name): def template_type(template_path): return 'jinja2' -class TemplateNotFound(Exception): - pass - def template_info(template_name): ''' Returns the path and type for a template '''