Skip to content

Commit

Permalink
[#1011] Fix a broken import in the package controller
Browse files Browse the repository at this point in the history
An exception was not getting caught because of the way this import was
done.
  • Loading branch information
Sean Hammond committed Aug 26, 2013
1 parent b9f9654 commit 98508d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/controllers/package.py
Expand Up @@ -19,7 +19,7 @@
import ckan.lib.datapreview as datapreview
import ckan.lib.plugins
import ckan.plugins as p
import lib.render
import ckan.lib.render

from ckan.common import OrderedDict, _, json, request, c, g, response
from home import CACHE_PARAMETERS
Expand Down Expand Up @@ -366,7 +366,7 @@ def read(self, id, format='html'):

try:
return render(template, loader_class=loader)
except lib.render.TemplateNotFound:
except ckan.lib.render.TemplateNotFound:
msg = _("Viewing {package_type} datasets in {format} format is "
"not supported (template file {file} not found).".format(
package_type=package_type, format=format, file=template))
Expand Down

0 comments on commit 98508d1

Please sign in to comment.