summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-08-13 01:49:11 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-08-13 01:49:11 +0000
commit0f000b7ae5b257451fbe3d266fba902ee27ba54e (patch)
tree77b1011ab28e7903dce6ebebfc55bfd324b6d460
parent3e51dac933a29e543f3470320c34112593a3c99a (diff)
Fixed incorrect error message in django.template.loaders.filesystem if you pass in template_dirs=None. Thanks, Martin Glueck
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/template/loaders/filesystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/loaders/filesystem.py b/django/template/loaders/filesystem.py
index 0c94021fb8..d01f54c5fe 100644
--- a/django/template/loaders/filesystem.py
+++ b/django/template/loaders/filesystem.py
@@ -17,7 +17,7 @@ def load_template_source(template_name, template_dirs=None):
return (open(filepath).read(), filepath)
except IOError:
tried.append(filepath)
- if template_dirs:
+ if tried:
error_msg = "Tried %s" % tried
else:
error_msg = "Your TEMPLATE_DIRS setting is empty. Change it to point to at least one template directory."