Skip to content

Commit

Permalink
2375 raise exception if template not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 24, 2012
1 parent 57342a5 commit f396f73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/lib/render.py
Expand Up @@ -32,6 +32,8 @@ def template_info(template_name):
return t_data['template_type'], t_data['template_type']

template_path = find_template(template_name)
if not template_path:
raise Exception('Template %s cannot be found' % template_name)
t_type = template_type(template_path)

t_data = {'template_path' : template_path,
Expand Down

0 comments on commit f396f73

Please sign in to comment.