Skip to content

Commit

Permalink
suppress server error on template not found
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Oct 3, 2017
1 parent 81bc4ad commit 4cc578a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckan/lib/render.py
Expand Up @@ -5,6 +5,7 @@
import logging

from ckan.common import config
from jinja2.exceptions import TemplateNotFound

log = logging.getLogger(__name__)

Expand All @@ -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 '''

Expand Down

0 comments on commit 4cc578a

Please sign in to comment.