Permalink
Browse files

Fixed a broken ImproperlyConfigured error message

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 20ad307 commit c804179126179bdbf643160202ef01d49b627f17 Simon Willison committed Dec 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/loader.py
@@ -80,7 +80,7 @@ def find_template_loader(loader):
module, attr = loader.rsplit('.', 1)
try:
mod = import_module(module)
- except ImportError:
+ except ImportError, e:
raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))
try:
TemplateLoader = getattr(mod, attr)

0 comments on commit c804179

Please sign in to comment.