From c804179126179bdbf643160202ef01d49b627f17 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 20 Dec 2009 22:46:35 +0000 Subject: [PATCH] Fixed a broken ImproperlyConfigured error message git-svn-id: http://code.djangoproject.com/svn/django/trunk@11923 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/loader.py b/django/template/loader.py index 8b3c8e3fb5..74ad7eee01 100644 --- a/django/template/loader.py +++ b/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)