Browse Source

Fixed a broken ImproperlyConfigured error message

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Simon Willison 15 years ago
parent
commit
c804179126
1 changed files with 1 additions and 1 deletions
  1. 1 1
      django/template/loader.py

+ 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)